mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
More events
This commit is contained in:
parent
cd3aaa1b50
commit
b9b0039cd7
3 changed files with 82 additions and 43 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -306,6 +306,7 @@ class PocketMinecraftServer{
|
|||
foreach($this->entities as $entity){
|
||||
|
||||
}
|
||||
$this->trigger("server.save", $final);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -365,6 +366,9 @@ class PocketMinecraftServer{
|
|||
if(isset($this->clients[$CID])){
|
||||
$this->clients[$CID]->handle($packet["pid"], $data);
|
||||
}else{
|
||||
if($this->handle("server.noauthpacket", $packet) === false){
|
||||
return;
|
||||
}
|
||||
switch($packet["pid"]){
|
||||
case 0x02:
|
||||
if($this->invisible === true){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue