More events

This commit is contained in:
Shoghi Cervantes Pueyo
2013-01-09 18:05:12 +01:00
parent cd3aaa1b50
commit b9b0039cd7
3 changed files with 82 additions and 43 deletions

View File

@@ -280,6 +280,10 @@ class Player{
if($c !== false){
$c->close("logged in from another location");
}
if($this->server->dhandle("player.join", $this) === false){
$this->close();
return;
}
$this->server->api->player->add($this->CID);
$this->auth = true;
$this->data["lastIP"] = $this->ip;