This commit is contained in:
Shoghi Cervantes Pueyo
2013-02-07 17:10:02 +01:00
parent e7d56a837f
commit 32df30448b
2 changed files with 8 additions and 1 deletions

View File

@ -60,6 +60,13 @@ class BanAPI{
}
public function opCheck($data, $event){
$whitelist = array(
"help",
);
if(in_array($data["cmd"], $whitelist, true)){
return true;
}
if($data["issuer"] instanceof Player){
if($this->isOp($data["issuer"]->username)){
return true;