menu
#5777060 Declaration of rankup\inventory\Window::onOpen(pocketmine\Player $player) must be compatible with pocketmine\inventory\ContainerInventory::onOpen(pocketmine\Player $who): void

Submitted by PocketMine-MP 3.26.5

General information

Version: 3.26.5
Git commit: a4af1609
Plugin involvement: Direct
Report date: 2022-01-14 21:37:03 +0000 UTC
Server uptime: 0 days 0 hours 2 minutes 56 seconds

System Information

PHP version: 8.0.13
Operating system: linux
System banner: Linux 3ea727ca-2029-49b0-8068-49424c7b97df 4.15.0-166-generic #174-Ubuntu SMP Wed Dec 8 19:07:44 UTC 2021 x86_64

Error information

Warning: the Rankup plugin was directly involved in this crash. Please contact the plugin author.
Message: Declaration of rankup\inventory\Window::onOpen(pocketmine\Player $player) must be compatible with pocketmine\inventory\ContainerInventory::onOpen(pocketmine\Player $who): void
File: plugins/Rankup_v1.phar/src/rankup/inventory/Window
Line: #70
Error level: E_COMPILE_ERROR
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
			$position = $position->add(0, 3);
$holder = new FakeBlockMenu($this, $position);
}

$this->position = $position;
$this->custom = $name;
parent::__construct($holder, $type);
}

public function onOpen(Player $player){
if(($pos = $this->position) instanceof Position){
$level = $player->getLevel();

$level->sendBlocks([$player], $this->getBlocks($level));
$this->spawnBlockEntityDataTo($player);

if($this->getTyping() == self::DOUBLE_CHEST){
$this->spawnBlockEntityDataTo($player, true);
Server::getInstance()->getScheduler()->scheduleDelayedTask(new class($this, $player) extends Task{

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show