mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 19:59:11 +00:00
Added skin checks to Player and Human
This commit is contained in:
@@ -1340,6 +1340,11 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
||||
$this->nameTag = $this->username;
|
||||
$this->iusername = strtolower($this->username);
|
||||
$this->randomClientId = $packet->clientId;
|
||||
if(strlen($packet->skin) < 64 * 32 * 4){
|
||||
$this->close("", "Invalid skin", false);
|
||||
return;
|
||||
}
|
||||
|
||||
$this->setSkin($packet->skin, $packet->slim);
|
||||
$this->loginData = ["clientId" => $packet->clientId, "loginData" => null];
|
||||
|
||||
|
Reference in New Issue
Block a user