mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-11 00:09:39 +00:00
Server: remove useless function
This commit is contained in:
parent
c98801402b
commit
7333e7118e
@ -957,10 +957,6 @@ class Server{
|
||||
return $this->operators;
|
||||
}
|
||||
|
||||
public function reloadWhitelist() : void{
|
||||
$this->whitelist->reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
|
@ -59,7 +59,7 @@ class WhitelistCommand extends VanillaCommand{
|
||||
}
|
||||
switch(strtolower($args[0])){
|
||||
case "reload":
|
||||
$sender->getServer()->reloadWhitelist();
|
||||
$sender->getServer()->getWhitelisted()->reload();
|
||||
Command::broadcastCommandMessage($sender, new TranslationContainer("commands.whitelist.reloaded"));
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user