mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 04:00:29 +00:00
Server: remove useless function
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user