mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Changed commands to use CommandSender::getServer()
This commit is contained in:
@ -50,7 +50,7 @@ class GiveCommand extends VanillaCommand{
|
||||
return false;
|
||||
}
|
||||
|
||||
$player = Server::getInstance()->getPlayer($args[0]);
|
||||
$player = $sender->getServer()->getPlayer($args[0]);
|
||||
$item = Item::fromString($args[1]);
|
||||
|
||||
if(!isset($args[2])){
|
||||
|
Reference in New Issue
Block a user