mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
emojis cant be send in chat anymore
This commit is contained in:
parent
5e45d6160c
commit
732591f174
2 changed files with 9 additions and 2 deletions
|
|
@ -2042,6 +2042,10 @@ class Player{
|
|||
$this->server->api->console->run(substr($message, 1), $this);
|
||||
}else{
|
||||
$data = ["player" => $this, "message" => $message];
|
||||
if(Utils::hasEmoji($data["message"])){
|
||||
$this->sendChat("Your message contains illegal characters");
|
||||
break;
|
||||
}
|
||||
if($this->server->api->handle("player.chat", $data) !== false){
|
||||
$this->server->send2Discord("<" . $this->username . "> " . $message);
|
||||
if(isset($data["message"])){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue