mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Chat & Console fixes
This commit is contained in:
parent
fea6e9c432
commit
9b07994913
2 changed files with 4 additions and 7 deletions
|
|
@ -56,7 +56,7 @@ class ChatAPI{
|
|||
if($issuer === "rcon"){
|
||||
$sender = "Rcon";
|
||||
}else{
|
||||
$sender = "Console";
|
||||
$sender = ucfirst($issuer);
|
||||
}
|
||||
}else{
|
||||
$sender = $issuer->username;
|
||||
|
|
@ -79,11 +79,8 @@ class ChatAPI{
|
|||
$target = $target->username;
|
||||
}else{
|
||||
$target = strtolower($n);
|
||||
if($target === "server" or $target === "console" or $target === "rcon"){
|
||||
if($t === "server" or $t === "console" or $t === "rcon"){
|
||||
$target = "Console";
|
||||
}else{
|
||||
$output .= "Usage: /$cmd <player> <message>\n";
|
||||
break;
|
||||
}
|
||||
}
|
||||
$mes = implode(" ", $params);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue