From a93b2cf954edc675b1fd5a841b74fd3ff6b1c8a0 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 23 Jul 2013 16:13:51 +0200 Subject: [PATCH] Revert "Minor fix to command.check" This reverts commit ed9eadd1a0981bb0aa04265bc3cbbc260998d08c. --- src/API/BanAPI.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/API/BanAPI.php b/src/API/BanAPI.php index 2b2ef925..ce0a9eea 100644 --- a/src/API/BanAPI.php +++ b/src/API/BanAPI.php @@ -53,7 +53,7 @@ class BanAPI{ $this->server->api->console->alias("pardon", "ban remove"); $this->server->api->console->alias("pardon-ip", "banip remove"); $this->server->addHandler("console.command", array($this, "permissionsCheck"), 1); - $this->server->addHandler("command.check", array($this, "permissionsCheck"), 1);//Event handler when commands are issued. Used to check permissions of commands that go through the server. + $this->server->addHandler("console.check", array($this, "permissionsCheck"), 1);//Event handler when commands are issued. Used to check permissions of commands that go through the server. $this->server->addHandler("player.block.break", array($this, "permissionsCheck"), 1);//Event handler for blocks $this->server->addHandler("player.block.place", array($this, "permissionsCheck"), 1);//Event handler for blocks $this->server->addHandler("player.flying", array($this, "permissionsCheck"), 1);//Flying Event @@ -97,7 +97,7 @@ class BanAPI{ } if($data["issuer"] instanceof Player){ - if($this->server->api->handle("command.check", $data) === true){ + if($this->server->api->handle("console.check", $data) === true){ return; } }elseif($data["issuer"] === "console" or $data["issuer"] === "rcon"){ @@ -105,7 +105,7 @@ class BanAPI{ } return false; break; - case "command.check": + case "console.check": if($this->isOp($data["issuer"]->iusername)) return true; else