Alright, so I got some help with this one and its still not working...Anyone have any ideas? It has no console errors, but it doesn't log anything, or even create the log file.
$logFile = "config/server/TezLogs/IPAddresses.cs";
//Checks if log already exists, if so, load log.
if(isFile($logFile))
{
exec($logFile);
}
//Package for automatically logging and saving IP addresses.
package IPLog
{
function GameConnection::AutoAdminCheck(%client)
{
$LoggedIP[%client.BL_ID] = %client.getRawIP();
export("$LoggedIP*", $logFile, false);
return Parent::AutoAdminCheck(%client);
}
};
activatepackage(IPLog);