mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed no params aliases
This commit is contained in:
parent
e3bf38e0b2
commit
b48f486620
2 changed files with 18 additions and 7 deletions
|
|
@ -195,9 +195,8 @@ class ConsoleAPI{
|
|||
}
|
||||
$cmd = strtolower(substr($line, 0, $end));
|
||||
$params = (string) substr($line, $end + 1);
|
||||
|
||||
if(isset($this->alias[$cmd])){
|
||||
return $this->run($this->alias[$cmd] . " " .$params, $issuer, $cmd);
|
||||
return $this->run($this->alias[$cmd] . ($params !== "" ? " " .$params:""), $issuer, $cmd);
|
||||
}
|
||||
if($issuer instanceof Player){
|
||||
console("[DEBUG] \x1b[33m".$issuer->username."\x1b[0m issued server command: ".ltrim("$alias ")."/$cmd ".$params, true, true, 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue