CLADevs / Minion

A plugin which adds minion on your server!
GNU General Public License v3.0
25 stars 23 forks source link

Plays gets kicked when they open a double chest #32

Closed AGTHARN closed 4 years ago

AGTHARN commented 4 years ago

Sometimes, players will get kicked for internal server error and this error is generated in the console, please fix it thanks you:

[23:42:40] [Server thread/CRITICAL]: Error: "Call to a member function setString() on null" (EXCEPTION) in "plugins/Minion_dev-18 (2).phar/src/CLADevs/Minion/EventListener" at line 99 [23:42:40] [Server thread/DEBUG]: #0 src/pocketmine/plugin/MethodEventExecutor(42): CLADevs\Minion\EventListener->onInteract(object pocketmine\event\player\PlayerInteractEvent) [23:42:40] [Server thread/DEBUG]: #1 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object CLADevs\Minion\EventListener, object pocketmine\event\player\PlayerInteractEvent) [23:42:40] [Server thread/DEBUG]: #2 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerInteractEvent) [23:42:40] [Server thread/DEBUG]: #3 src/pocketmine/level/Level(1862): pocketmine\event\Event->call() [23:42:40] [Server thread/DEBUG]: #4 src/pocketmine/Player(2412): pocketmine\level\Level->useItemOn(object pocketmine\math\Vector3, object pocketmine\item\Pickaxe, integer 1, object pocketmine\math\Vector3, object pocketmine\Player, boolean 1) [23:42:40] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(150): pocketmine\Player->handleInventoryTransaction(object CortexPE\network\InventoryTransactionPacket) [23:42:40] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(178): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(object CortexPE\network\InventoryTransactionPacket) [23:42:40] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [23:42:40] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/BatchPacket(126): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object CortexPE\network\InventoryTransactionPacket) [23:42:40] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [23:42:40] [Server thread/DEBUG]: #10 src/pocketmine/Player(3118): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [23:42:40] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [23:42:40] [Server thread/DEBUG]: #12 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[18] 121.99.76.87 60663, object raklib\protocol\EncapsulatedPacket, integer 0) [23:42:40] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [23:42:40] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [23:42:40] [Server thread/DEBUG]: #15 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() [23:42:40] [Server thread/DEBUG]: #16 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [23:42:40] [Server thread/DEBUG]: #17 src/pocketmine/Server(2146): pocketmine\snooze\SleeperHandler->sleepUntil(double 1587253360.8037) [23:42:40] [Server thread/DEBUG]: #18 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor() [23:42:40] [Server thread/DEBUG]: #19 src/pocketmine/Server(1584): pocketmine\Server->start() [23:42:40] [Server thread/DEBUG]: #20 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[26] /home/minecraft-pe/server/, string[34] /home/minecraft-pe/server/plugins/) [23:42:40] [Server thread/DEBUG]: #21 src/pocketmine/PocketMine(296): pocketmine\server()