mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed #156
This commit is contained in:
parent
2a8c72dfc2
commit
8bbd899689
2 changed files with 10 additions and 3 deletions
|
|
@ -62,6 +62,7 @@ class BanAPI{
|
|||
}
|
||||
|
||||
public function isOp($username){
|
||||
$username = strtolower($username);
|
||||
if($this->server->api->dhandle("op.check", $username) === true){
|
||||
return true;
|
||||
}elseif($this->ops->exists($username)){
|
||||
|
|
@ -77,7 +78,7 @@ class BanAPI{
|
|||
}
|
||||
|
||||
if($data["issuer"] instanceof Player){
|
||||
if($this->server->api->handle("console.check", $data) === true or $this->isOp($data["issuer"]->username)){
|
||||
if($this->server->api->handle("console.check", $data) === true or $this->isOp($data["issuer"]->iusername)){
|
||||
return true;
|
||||
}
|
||||
}elseif($data["issuer"] === "console"){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue