mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
fixed weird issue
This commit is contained in:
parent
08a9f6f77e
commit
629a044053
1 changed files with 2 additions and 2 deletions
|
|
@ -460,7 +460,7 @@ class PlayerAPI{
|
||||||
public function getByEID($eid){
|
public function getByEID($eid){
|
||||||
$eid = (int) $eid;
|
$eid = (int) $eid;
|
||||||
$CID = $this->server->query("SELECT ip,port FROM players WHERE EID = '" . $eid . "';", true);
|
$CID = $this->server->query("SELECT ip,port FROM players WHERE EID = '" . $eid . "';", true);
|
||||||
$CID = PocketMinecraftServer::clientID($CID["ip"], $CID["port"]);
|
$CID = is_array($CID) ? PocketMinecraftServer::clientID($CID["ip"], $CID["port"]) : false;
|
||||||
if(isset($this->server->clients[$CID])){
|
if(isset($this->server->clients[$CID])){
|
||||||
return $this->server->clients[$CID];
|
return $this->server->clients[$CID];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue