mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +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:
parent
378c3d7994
commit
895790f46c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user