menu
#2466849 Call to a member function getId() on null

Submitted by PocketMine-MP 3.7.1

General information

Version: 3.7.1
Git commit: 5c26deb5
Plugin involvement: Direct
Report date: 2019-06-12 02:03:03 +0000 UTC

System Information

PHP version: 7.2.12
Operating system: linux
System banner: Linux ns508451 4.9.87-xxxx-std-ipv6-64 #1 SMP Tue Mar 13 18:41:47 CET 2018 x86_64

Error information

Warning: the MysteriousBookRN plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getId() on null
File: plugins/MysteriousBook[RN[11-06]].phar/src/mysteriousBook/main/Loader
Line: #121
Error level: Error
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
						$enchsLuck = $this->base->getEnchsLuck();
$enchDrawn = null;
if($this->temp > 0){
$enchDrawn = $enchsLuck[array_rand($enchsLuck, 1)];
$this->player->addTitle($enchDrawn->getNameTitle());
$this->temp--;
}else{
$book = Item::get(ITEMD::BOOK, 0, 1);
$book->setCustomName("§eLivro de Encantamento");
$ench = Enchantment::getEnchantment($enchDrawn->getId());
$book->addEnchantment(new EnchantmentInstance($ench, $enchDraw->getLevel()));
$this->player->getInventory()->addItem($book);

$this->base->getServer()->broadcastMessage("§b »»» Jogador §6".$this->player->getName()." §r§bganhou um livro §6".$enchDraw->getNameTitle());

unset($this->base->schedulers[$this->player->getName()]);
$this->base->getScheduler()->cancelTask($this->getTaskId());
}
}
}, 10);
#0 src/pocketmine/scheduler/TaskHandler(159): [email protected]�phar:///home/minecraft/multicraft/servers/server350/plugins/MysteriousBook[RN[11-06]].phar/src/mysteriousBook/main/Loader.php0x7f36e47361ae->onRun(integer 2902)
#1 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 2902)
#2 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 2902)
#3 src/pocketmine/Server(2549): pocketmine\plugin\PluginManager->tickSchedulers(integer 2902)
#4 src/pocketmine/Server(2325): pocketmine\Server->tick()
#5 src/pocketmine/Server(2186): pocketmine\Server->tickProcessor()
#6 src/pocketmine/Server(1765): pocketmine\Server->start()
#7 src/pocketmine/PocketMine(250): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/minecraft/multicraft/servers/server350/, string /home/minecraft/multicraft/servers/server350/plugins/)
#8 (1): require(string phar:///home/minecraft/multicraft/jar/PocketMine/pocketmine110.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show