Lots of typos fixed, undefined variables, unused code

This commit is contained in:
Shoghi Cervantes
2014-02-19 01:55:42 +01:00
parent 3d3111fef6
commit f1b5f83fd4
35 changed files with 63 additions and 251 deletions

View File

@ -32,7 +32,7 @@ class BanAPI{
private $ops;
/** @var Config */
private $bannedIPs;
private $cmdWL = array();//Command WhiteList
private $cmdWhitelist = array();//Command WhiteList
function __construct(){
$this->server = ServerAPI::request();
}
@ -104,7 +104,6 @@ class BanAPI{
}
}
return;
break;
case "console.command"://Checks if a command is allowed with the current user permissions.
if(isset($this->cmdWhitelist[$data["cmd"]])){
return;
@ -118,7 +117,6 @@ class BanAPI{
return;
}
return false;
break;
}
}
@ -152,7 +150,7 @@ class BanAPI{
$player = $this->server->api->player->get($user);
if(!($player instanceof Player)){
$this->ops->set($user);
$this->ops->save($user);
$this->ops->save();
$output .= $user." is now op\n";
break;
}