mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Allow DeOPing disconnected players
This commit is contained in:
parent
00de63986b
commit
df4a29d7d6
1 changed files with 3 additions and 1 deletions
|
|
@ -138,7 +138,9 @@ class BanAPI{
|
|||
$user = strtolower($params[0]);
|
||||
$player = $this->server->api->player->get($user);
|
||||
if(!($player instanceof Player)){
|
||||
$output .= "Player not connected.\n";
|
||||
$this->ops->set($user, false);
|
||||
$this->ops->save($user);
|
||||
$output .= $user." is not longer op\n";
|
||||
break;
|
||||
}
|
||||
$this->ops->remove($player->iusername);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue