goldentouch74 / BookSystem

A random book plugin for piggy custom enchants
Other
7 stars 9 forks source link

Call to a member function getRarity() #11

Open OpTicSpiderAnt opened 4 years ago

OpTicSpiderAnt commented 4 years ago

Here is the Log:

15.07 23:52:21 [Server] Server thread/CRITICAL Error: "Call to a member function getRarity() on null" (EXCEPTION) in "plugins/BookSystem_v2.0.0.phar/src/goldentouch74/BookSystem/Main" at line 150 15.07 23:52:21 [Server] Server thread/CRITICAL #0 src/pocketmine/plugin/MethodEventExecutor(42): goldentouch74\BookSystem\Main->onInteract(object pocketmine\event\player\PlayerInteractEvent) 15.07 23:52:21 [Server] Server thread/CRITICAL #1 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object goldentouch74\BookSystem\Main, object pocketmine\event\player\PlayerInteractEvent) 15.07 23:52:21 [Server] Server thread/CRITICAL #2 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerInteractEvent) 15.07 23:52:21 [Server] Server thread/CRITICAL #3 src/pocketmine/level/Level(1870): pocketmine\event\Event->call() 15.07 23:52:21 [Server] Server thread/CRITICAL #4 src/pocketmine/Player(2509): pocketmine\level\Level->useItemOn(object pocketmine\math\Vector3, object pocketmine\item\Book, integer 1, object pocketmine\math\Vector3, object pocketmine\Player, boolean 1) 15.07 23:52:21 [Server] Server thread/CRITICAL #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(150): pocketmine\Player->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket) 15.07 23:52:21 [Server] Server thread/CRITICAL #6 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(173): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket) 15.07 23:52:21 [Server] Server thread/CRITICAL #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) 15.07 23:52:21 [Server] Server thread/CRITICAL #8 src/pocketmine/network/mcpe/protocol/BatchPacket(127): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket) 15.07 23:52:21 [Server] Server thread/CRITICAL #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) 15.07 23:52:21 [Server] Server thread/CRITICAL #10 src/pocketmine/Player(3247): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) 15.07 23:52:21 [Server] Server thread/CRITICAL #11 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) 15.07 23:52:21 [Server] Server thread/CRITICAL #12 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[18] 98.242.24.49 51847, object raklib\protocol\EncapsulatedPacket, integer 0) 15.07 23:52:21 [Server] Server thread/CRITICAL #13 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() 15.07 23:52:21 [Server] Server thread/CRITICAL #14 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() 15.07 23:52:21 [Server] Server thread/CRITICAL #15 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() 15.07 23:52:21 [Server] Server thread/CRITICAL #16 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() 15.07 23:52:21 [Server] Server thread/CRITICAL #17 src/pocketmine/Server(2157): pocketmine\snooze\SleeperHandler->sleepUntil(double 1594857141.0531) 15.07 23:52:21 [Server] Server thread/CRITICAL #18 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor() 15.07 23:52:21 [Server] Server thread/CRITICAL #19 src/pocketmine/Server(1588): pocketmine\Server->start() 15.07 23:52:21 [Server] Server thread/CRITICAL #20 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[48] /, string[56] /plugins/) 15.07 23:52:21 [Server] Server thread/CRITICAL #21 src/pocketmine/PocketMine(304): pocketmine\server() 15.07 23:52:21 [Server] Server thread/CRITICAL #22 (11): require(string[108] phar:///PMMP-Latest-Stable.phar/s)

OpTicSpiderAnt commented 4 years ago

This happens randomly when left clicking the books to get the enchants. I though it was from possibly now enchants I banned, but it wasn’t.