mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Changed commands to use CommandSender::getServer()
This commit is contained in:
@ -48,7 +48,7 @@ class PardonCommand extends VanillaCommand{
|
||||
return false;
|
||||
}
|
||||
|
||||
Server::getInstance()->getNameBans()->remove($args[0]);
|
||||
$sender->getServer()->getNameBans()->remove($args[0]);
|
||||
|
||||
Command::broadcastCommandMessage($sender, "Pardoned " . $name);
|
||||
|
||||
|
Reference in New Issue
Block a user