mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Command spy is back!
This commit is contained in:
parent
6eae784e9e
commit
36d328861c
1 changed files with 1 additions and 0 deletions
|
|
@ -2011,6 +2011,7 @@ class Player{
|
|||
if(trim($packet->message) != "" and strlen($packet->message) <= 255){
|
||||
$message = $packet->message;
|
||||
if($message{0} === "/"){ //Command
|
||||
console("[INFO] " . FORMAT_AQUA . $this->username . FORMAT_RESET . " issued 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