mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
small command fix for default players
This commit is contained in:
parent
28303a95fb
commit
edc2ec0e53
1 changed files with 5 additions and 1 deletions
|
|
@ -245,7 +245,11 @@ class ConsoleAPI{
|
||||||
|
|
||||||
if(($d1 = $this->server->api->dhandle("console.command.".$cmd, array("cmd" => $cmd, "parameters" => $params, "issuer" => $issuer, "alias" => $alias))) === false
|
if(($d1 = $this->server->api->dhandle("console.command.".$cmd, array("cmd" => $cmd, "parameters" => $params, "issuer" => $issuer, "alias" => $alias))) === false
|
||||||
or ($d2 = $this->server->api->dhandle("console.command", array("cmd" => $cmd, "parameters" => $params, "issuer" => $issuer, "alias" => $alias))) === false){
|
or ($d2 = $this->server->api->dhandle("console.command", array("cmd" => $cmd, "parameters" => $params, "issuer" => $issuer, "alias" => $alias))) === false){
|
||||||
$output = "You don't have permissions to use this command.\n";
|
if(in_array(strtolower($cmd), array_keys($this->cmds))){
|
||||||
|
$output = "You don't have permissions to use this command.\n";
|
||||||
|
}else{
|
||||||
|
$output = "Command doesn't exist! Use /help\n";
|
||||||
|
}
|
||||||
}elseif($d1 !== true and (!isset($d2) or $d2 !== true)){
|
}elseif($d1 !== true and (!isset($d2) or $d2 !== true)){
|
||||||
if(isset($this->cmds[$cmd]) and is_callable($this->cmds[$cmd])){
|
if(isset($this->cmds[$cmd]) and is_callable($this->cmds[$cmd])){
|
||||||
$output = @call_user_func($this->cmds[$cmd], $cmd, $params, $issuer, $alias);
|
$output = @call_user_func($this->cmds[$cmd], $cmd, $params, $issuer, $alias);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue