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:
Dylan K. Taylor
2020-11-28 18:22:59 +00:00
parent 4439781124
commit c7961bfe90
8 changed files with 32 additions and 78 deletions

View File

@@ -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{
}