mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Added command spy
This commit is contained in:
parent
84069f79e9
commit
76bef72df2
1 changed files with 1 additions and 0 deletions
|
|
@ -1939,6 +1939,7 @@ class Player{
|
|||
if(trim($data["message"]) != "" and strlen($data["message"]) <= 255){
|
||||
$message = $data["message"];
|
||||
if($message{0} === "/"){ //Command
|
||||
console("[INFO] " . FORMAT_AQUA . $data["player"] . FORMAT_RESET . " used a command: " . FORMAT_AQUA . $message);
|
||||
$this->server->api->console->run(substr($message, 1), $this);
|
||||
}else{
|
||||
$data = array("player" => $this, "message" => $message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue