mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
Changed commands to use CommandSender::getServer()
This commit is contained in:
@@ -44,7 +44,7 @@ class ReloadCommand extends VanillaCommand{
|
||||
|
||||
Command::broadcastCommandMessage($sender, TextFormat::YELLOW . "Reloading server...");
|
||||
|
||||
Server::getInstance()->reload();
|
||||
$sender->getServer()->reload();
|
||||
Command::broadcastCommandMessage($sender, TextFormat::GOLD . "Reload complete.");
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user