mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Improved Player::blocked
This commit is contained in:
parent
ff7fa066a5
commit
c83d4d955f
2 changed files with 10 additions and 16 deletions
|
|
@ -238,7 +238,7 @@ class ConsoleAPI{
|
|||
|
||||
if($this->server->api->dhandle("console.command.".$cmd, array("cmd" => $cmd, "parameters" => $params, "issuer" => $issuer, "alias" => $alias)) === false
|
||||
or $this->server->api->dhandle("console.command", array("cmd" => $cmd, "parameters" => $params, "issuer" => $issuer, "alias" => $alias)) === false){
|
||||
$output = "You don't have permission to use this command.\n";
|
||||
$output = "You don't have permissions to use this command.\n";
|
||||
}else{
|
||||
if(isset($this->cmds[$cmd]) and is_callable($this->cmds[$cmd])){
|
||||
$output = @call_user_func($this->cmds[$cmd], $cmd, $params, $issuer, $alias);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue