Server: remove useless function

This commit is contained in:
Dylan K. Taylor 2019-03-26 15:52:34 +00:00
parent c98801402b
commit 7333e7118e
2 changed files with 1 additions and 5 deletions

View File

@ -957,10 +957,6 @@ class Server{
return $this->operators;
}
public function reloadWhitelist() : void{
$this->whitelist->reload();
}
/**
* @return string[]
*/

View File

@ -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;