MovePlayerPacket fixed

This commit is contained in:
yefengeeeeeeeeeee 2025-03-19 20:02:56 +08:00
parent 8a141860ef
commit 50cc72be76
3 changed files with 270 additions and 6 deletions

View file

@ -327,6 +327,18 @@ class PlayerAPI{
return $o;
}
/**
* @return int
*/
public static function decodeProtocol($ip){
foreach(ServerAPI::request()->clients as $p) {
if($p->ip == $ip){
console($p->PROTOCOL);
return $p->PROTOCOL;
}
}
}
public function add($CID){
if(isset($this->server->clients[$CID])){
$player = $this->server->clients[$CID];