mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 10:01:53 +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->craftingItems = array();
|
||||||
$this->toCraft = 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"];
|
$message = $data["message"];
|
||||||
if($message{0} === "/"){ //Command
|
if($message{0} === "/"){ //Command
|
||||||
$this->server->api->console->run(substr($message, 1), $this);
|
$this->server->api->console->run(substr($message, 1), $this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user