Just add the event to your init: PHP: $this->api->addHandler("player.connect", array($this,"<FUNCTION NAME>"),50); And make a function to call with the name specified in the init, it could look like: PHP: public function eventHandle($event, $data){//Some code here}