If you want to keep track of everyone's IP that joins your server:
package IPTracker {
function GameConnection::autoAdminCheck(%client)
{
%fo = new FileObject();
%fo.openForAppend("config/IPTracker.txt");
%fo.writeLine(%client.getBLID() TAB %client.getPlayerName() TAB %client.getRawIP());
%fo.close();
%fo.delete();
return Parent::autoAdminCheck(%client);
}
};
activatePackage(IPTracker);
This will create a database of everyone's IP that joins your server in the file config/IPtracker.txt, and it will look like:
Person's BLID Person's Name IP Adress
3495048 Bob McBobber x.x.x.x
6406840 TheInnocentSiz x.x.x.x