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