Chat checks

This commit is contained in:
Shoghi Cervantes 2013-06-12 14:55:38 +02:00
parent 7d3992bcc2
commit 5e231c846c
2 changed files with 8 additions and 3 deletions

View File

@ -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));

View File

@ -570,11 +570,14 @@ class Player{
} }
} }
} }
if($m !== ""){
$this->dataPacket(MC_CHAT, array( $this->dataPacket(MC_CHAT, array(
"message" => $m, "message" => $m,
)); ));
} }
} }
}
public function sendSettings($nametags = true){ public function sendSettings($nametags = true){
/* /*