Changed commands to use CommandSender::getServer()

This commit is contained in:
Shoghi Cervantes
2014-06-17 18:41:10 +02:00
parent f14fecbb5f
commit 9e8f015dc0
30 changed files with 48 additions and 51 deletions

View File

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