mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Fix signs going blank
Sign text is not limited to 16 characters anymore, but to the width of the sign. Server: Stop being such a control freak
This commit is contained in:
@ -2812,12 +2812,6 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
||||
|
||||
if(!isset($t->namedtag->Creator) or $t->namedtag["Creator"] !== $this->getRawUniqueId()){
|
||||
$ev->setCancelled();
|
||||
}else{
|
||||
foreach($ev->getLines() as $line){
|
||||
if(mb_strlen($line, "UTF-8") > 16){
|
||||
$ev->setCancelled();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->server->getPluginManager()->callEvent($ev);
|
||||
|
Reference in New Issue
Block a user