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