From 65110d5358b5fd2235c667fd8b22f6e9831f1d13 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Wed, 20 Mar 2013 15:17:58 +0100 Subject: [PATCH] Removed /harm --- src/API/PlayerAPI.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/API/PlayerAPI.php b/src/API/PlayerAPI.php index b6f9af6d..9532c91d 100644 --- a/src/API/PlayerAPI.php +++ b/src/API/PlayerAPI.php @@ -36,7 +36,6 @@ class PlayerAPI{ $this->server->addHandler("player.death", array($this, "handle"), 1); $this->server->api->console->register("list", "Shows connected player list", array($this, "commandHandler")); $this->server->api->console->register("kill", "Kills a player", array($this, "commandHandler")); - $this->server->api->console->register("harm", "Harms a player", array($this, "commandHandler")); $this->server->api->console->register("gamemode", "Changes the player gamemode", array($this, "commandHandler")); $this->server->api->console->register("tppos", "Teleports a player to a position", array($this, "commandHandler")); $this->server->api->console->register("tp", "Teleports a player to another player", array($this, "commandHandler")); @@ -185,15 +184,6 @@ class PlayerAPI{ $output .= "Usage: /kill [player]\n"; } break; - case "harm": - $dmg = (int) array_shift($params); - $player = $this->get(implode(" ", $params)); - if($player !== false){ - $this->server->api->entity->harm($player->eid, $dmg, "console", true); - }else{ - $output .= "Usage: /harm \n"; - } - break; case "list": $output .= "Player list:\n"; foreach($this->server->clients as $c){