mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 23:37:45 +00:00
Changed commands to use CommandSender::getServer()
This commit is contained in:
@@ -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!");
|
||||
|
Reference in New Issue
Block a user