mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 23:37:45 +00:00
Toss ServerOperator; PermissibleBase now tracks its own op status
as well as being simpler, this also allows some nice features, such as granting memory-only op state that goes away when the player quits the server.
This commit is contained in:
@@ -44,7 +44,7 @@ class ConsoleCommandSender implements CommandSender{
|
||||
|
||||
public function __construct(Server $server, Language $language){
|
||||
$this->server = $server;
|
||||
$this->perm = new PermissibleBase($this);
|
||||
$this->perm = new PermissibleBase($this, true);
|
||||
$this->language = $language;
|
||||
}
|
||||
|
||||
@@ -76,11 +76,7 @@ class ConsoleCommandSender implements CommandSender{
|
||||
return "CONSOLE";
|
||||
}
|
||||
|
||||
public function isOp() : bool{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function setOp(bool $value) : void{
|
||||
public function onOpStatusChange(bool $value) : void{
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user