mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Removed unnecesary replace
This commit is contained in:
parent
8f21eb41ee
commit
ba3dfd91db
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ class PlayerAPI{
|
|||
}
|
||||
|
||||
public function get($name){
|
||||
$CID = $this->server->query("SELECT ip,port FROM players WHERE name = '".str_replace("'", "", $name)."';", true);
|
||||
$CID = $this->server->query("SELECT ip,port FROM players WHERE name = '".$name."';", true);
|
||||
$CID = $this->server->clientID($CID["ip"], $CID["port"]);
|
||||
if(isset($this->server->clients[$CID])){
|
||||
return $this->server->clients[$CID];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue