Author Topic: Callback on client connect  (Read 425 times)

I'm trying to hook myself up to the ClientConnection::onConnect callback, like this.

Code: [Select]
package thePackage {
function ClientConnection::onConnect(%this) {
echo("A client connected");
parent::onConnect(%this);
}
};
activatePackage(thePackage);
However, nothing happens. Am I hooking up to the wrong class/prototype, or is there anything else bad?

1. It's GameConnection, not ClientConnection
2. Use GameConnection::autoAdminCheck

1. It's GameConnection, not ClientConnection
2. Use GameConnection::autoAdminCheck
Thanks, worked wonderfully.