mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
Chat checks
This commit is contained in:
parent
7d3992bcc2
commit
5e231c846c
2 changed files with 8 additions and 3 deletions
|
|
@ -245,6 +245,8 @@ class ConsoleAPI{
|
||||||
}elseif($this->server->api->dhandle("console.command.unknown", array("cmd" => $cmd, "params" => $params, "issuer" => $issuer, "alias" => $alias)) !== false){
|
}elseif($this->server->api->dhandle("console.command.unknown", array("cmd" => $cmd, "params" => $params, "issuer" => $issuer, "alias" => $alias)) !== false){
|
||||||
$output = $this->defaultCommands($cmd, $params, $issuer, $alias);
|
$output = $this->defaultCommands($cmd, $params, $issuer, $alias);
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
$output = "";
|
||||||
}
|
}
|
||||||
if($output != "" and ($issuer instanceof Player)){
|
if($output != "" and ($issuer instanceof Player)){
|
||||||
$issuer->sendChat(trim($output));
|
$issuer->sendChat(trim($output));
|
||||||
|
|
|
||||||
|
|
@ -570,9 +570,12 @@ class Player{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->dataPacket(MC_CHAT, array(
|
|
||||||
"message" => $m,
|
if($m !== ""){
|
||||||
));
|
$this->dataPacket(MC_CHAT, array(
|
||||||
|
"message" => $m,
|
||||||
|
));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue