mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Removed character range check for UTF-8 full support
This commit is contained in:
parent
f609c40bdc
commit
fe681cb786
@ -1631,7 +1631,7 @@ class Player{
|
||||
}
|
||||
$this->craftingItems = array();
|
||||
$this->toCraft = array();
|
||||
if(trim($data["message"]) != "" and strlen($data["message"]) <= 255 and preg_match('#[^\\x20-\\xff]#', $data["message"]) == 0){
|
||||
if(trim($data["message"]) != "" and strlen($data["message"]) <= 255){
|
||||
$message = $data["message"];
|
||||
if($message{0} === "/"){ //Command
|
||||
$this->server->api->console->run(substr($message, 1), $this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user