From d0d8d281d2111fb764d005646167952666769137 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Sat, 20 Apr 2013 20:56:58 +0200 Subject: [PATCH] Revert "Added coordinates command. Displays your coordinates" This reverts commit 4434fe2a5b499aaf0cdb667644710b41788655a6. --- src/API/ChatAPI.php | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/API/ChatAPI.php b/src/API/ChatAPI.php index aa494bd3e..46ec432ed 100644 --- a/src/API/ChatAPI.php +++ b/src/API/ChatAPI.php @@ -34,8 +34,6 @@ class ChatAPI{ public function init(){ $this->server->api->console->register("tell", " ", array($this, "commandHandler")); $this->server->api->console->register("me", "", array($this, "commandHandler")); - $this->server->api->console->register("coordinates", "", array($this, "commandHandler")); - $this->server->api->ban->cmdWhitelist("coordinates"); $this->server->api->ban->cmdWhitelist("tell"); $this->server->api->ban->cmdWhitelist("me"); } @@ -43,22 +41,6 @@ class ChatAPI{ public function commandHandler($cmd, $params, $issuer, $alias){ $output = ""; switch($cmd){ - case "coordinates": - if(!($issuer instanceof Player)) - {//Console with player not specified - $output .= "[ERROR] Console cannot get his own position";//Print Error - } - else if($issuer instanceof Player) - { - $sender = $issuer->username;//Issued by player - $msg = "Your location is x=".$issuer->entity->x." y=".$issuer->entity->y." z=".$issuer->entity->z; - $this->sendTo(false, $msg, $sender); - } - else - { - $output .= "[ERROR] Command: Coordiates. Unknown sender."; - } - break; case "me": if(!($issuer instanceof Player)){ $sender = "Console"; @@ -124,4 +106,4 @@ class ChatAPI{ } $this->server->handle("server.chat", new Container($message, $whitelist, $blacklist)); } -} +} \ No newline at end of file