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

@@ -51,7 +51,7 @@ class DeopCommand extends VanillaCommand{
$name = array_shift($args);
$player = Server::getInstance()->getOfflinePlayer($name);
$player = $sender->getServer()->getOfflinePlayer($name);
$player->setOp(false);
if($player instanceof Player){
$player->sendMessage(TextFormat::YELLOW . "You are no longer op!");