DaPigGuy / PiggyCustomEnchants

An open source custom enchantment plugin for PocketMine-MP
https://piggydocs.aericio.net/PiggyCustomEnchants.html
Apache License 2.0
103 stars 119 forks source link

Crash but I don't know why #330

Closed UnEnanoMas closed 3 years ago

UnEnanoMas commented 3 years ago

Please make sure your issue complies with these guidelines:

Link to crashdump: crash.txt

Extra Information

Captura de pantalla (500)

{ "cursed": "Maldito", "drunk": "Borracho", "frozen": "Congelado", "hardened": "Curtido", "poisoned": "Envenenado", "revulsion": "Repugnancia", "aerial": "Golpe Aereo", "backstab": "Puñalada por la espalda", "charge": "Cargar", "blind": "Ciego", "cripple": "Lisiado", "poison": "Veneno", "wither": "Marchitar", "blaze": "Resplandor", "homing": "Buscador de blancos", "porkified": "Puercos", "witherskull": "Marchita craneos", "enraged": "Enfurecido", "gears": "Velociraptor", "glowing": "Vision nocturna", "haste": "Prisa", "obsidianshield": "Escudo de obsidiana", "oxygenate": "Oxigenar", "springs": "Muelles", "antiknockback": "Anti empuje", "antitoxin": "Antitoxina", "autoaim": "Objetivo automático", "autorepair": "Reparación automática", "armored": "Armado", "berserker": "Frenético", "blessed": "Bendición", "bombardment": "Bombardeo", "bountyhunter": "Cazarrecompensas", "cactus": "Cactus", "chicken": "Pollo", "cloaking": "Encubierto", "deathbringer": "Portador de la muerte", "deepwounds": "Heridas profundas", "disarming": "Desarmador", "disarmor": "Desarmar", "driller": "Taladrador", "endershift": "Endershift", "energizing": "Energizante", "enlighted": "Iluminado", "explosive": "Explosivo", "farmer": "Granjero", "fertilizer": "Fertilizante", "focused": "Enfocado", "forcefield": "Campo de fuerza", "gooey": "Pegajoso", "grappling": "Aferramiento", "grow": "Crecer", "hallucination": "Alucinación", "harvest": "Cosecha", "headhunter": "Cazacabezas", "healing": "Curación", "heavy": "Pesado", "implants": "Implantes", "jackpot": "Bote", "jetpack": "Jetpack", "lifesteal": "Chupavidas", "lightning": "Relámpago", "luckycharm": "Amuleto de la suerte", "lumberjack": "Leñador", "magmawalker": "Andador Caliente", "meditation": "Meditación", "missile": "Misil", "molotov": "Molotov", "molten": "Fundido", "overload": "Sobrecarga", "parachute": "Paracaídas", "paralyze": "Paralizar", "piercing": "Perforación", "poisonouscloud": "Nube venenosa", "prowl": "Merodear", "quickening": "Aceleración", "radar": "Radar", "revive": "Revivir", "selfdestruct": "Auto destrucción", "shielded": "Blindado", "shrink": "Encogimiento", "shuffle": "Barajar", "smelting": "Fundición", "soulbound": "Alma atada", "spider": "Araña", "stomp": "Pisada fuerte", "tank": "Tanque", "telepathy": "Telepatía", "vacuum": "Agujero negro", "vampire": "Vampiro", "volley": "Disparo multiple" }

UnEnanoMas commented 3 years ago

[18:22:31] [Server thread/CRITICAL]: ErrorException: "Undefined index: xxpumita" (EXCEPTION) in "plugins/PiggyCustomEnchants_dev-462 (1).phar/src/DaPigGuy/PiggyCustomEnchants/enchants/armor/ShieldedEnchant" at line 35 [18:22:31] [Server thread/CRITICAL]: #0 plugins/PiggyCustomEnchants_dev-462 (1).phar/src/DaPigGuy/PiggyCustomEnchants/enchants/armor/ShieldedEnchant(35): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[25] Undefined index: xxpumita, string[135] phar:///home/container/plugins/PiggyCustomEnchants_dev-462 (1).phar/src/DaPigGuy, integer 35, array[6]) [18:22:31] [Server thread/CRITICAL]: #1 plugins/PiggyCustomEnchants_dev-462 (1).phar/src/DaPigGuy/PiggyCustomEnchants/enchants/traits/ToggleTrait(43): DaPigGuy\PiggyCustomEnchants\enchants\armor\ShieldedEnchant->toggle(object pocketmine\Player, object Wertzui123\Netherite\item\armor\NetheriteHelmet, object pocketmine\inventory\ArmorInventory, integer 0, integer 1, boolean ) [18:22:31] [Server thread/CRITICAL]: #2 plugins/PiggyCustomEnchants_dev-462 (1).phar/src/DaPigGuy/PiggyCustomEnchants/enchants/traits/ToggleTrait(83): DaPigGuy\PiggyCustomEnchants\enchants\ToggleableEnchantment->onToggle(object pocketmine\Player, object Wertzui123\Netherite\item\armor\NetheriteHelmet, object pocketmine\inventory\ArmorInventory, integer 0, integer 1, boolean ) [18:22:31] [Server thread/CRITICAL]: #3 plugins/PiggyCustomEnchants_dev-462 (1).phar/src/DaPigGuy/PiggyCustomEnchants/EventListener(119): DaPigGuy\PiggyCustomEnchants\enchants\ToggleableEnchantment::attemptToggle(object pocketmine\Player, object Wertzui123\Netherite\item\armor\NetheriteHelmet, object pocketmine\item\enchantment\EnchantmentInstance, object pocketmine\inventory\ArmorInventory, integer 0, boolean ) [18:22:31] [Server thread/CRITICAL]: #4 src/pocketmine/plugin/MethodEventExecutor(42): DaPigGuy\PiggyCustomEnchants\EventListener->onArmorChange(object pocketmine\event\entity\EntityArmorChangeEvent) [18:22:31] [Server thread/CRITICAL]: #5 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object DaPigGuy\PiggyCustomEnchants\EventListener, object pocketmine\event\entity\EntityArmorChangeEvent) [18:22:31] [Server thread/CRITICAL]: #6 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityArmorChangeEvent) [18:22:31] [Server thread/CRITICAL]: #7 src/pocketmine/inventory/ArmorInventoryEventProcessor(40): pocketmine\event\Event->call() [18:22:31] [Server thread/CRITICAL]: #8 src/pocketmine/inventory/BaseInventory(168): pocketmine\inventory\ArmorInventoryEventProcessor->onSlotChange(object pocketmine\inventory\ArmorInventory, integer 0, object Wertzui123\Netherite\item\armor\NetheriteHelmet, object pocketmine\item\ItemBlock) [18:22:31] [Server thread/CRITICAL]: #9 src/pocketmine/inventory/BaseInventory(364): pocketmine\inventory\BaseInventory->setItem(integer 0, object pocketmine\item\ItemBlock, boolean ) [18:22:31] [Server thread/CRITICAL]: #10 src/pocketmine/inventory/BaseInventory(369): pocketmine\inventory\BaseInventory->clear(integer 0, boolean ) [18:22:31] [Server thread/CRITICAL]: #11 plugins/CreativeLimit-master/src/padreon/CreativeLimit/Main(56): pocketmine\inventory\BaseInventory->clearAll() [18:22:31] [Server thread/CRITICAL]: #12 src/pocketmine/plugin/MethodEventExecutor(42): padreon\CreativeLimit\Main->onGameModeChange(object pocketmine\event\player\PlayerGameModeChangeEvent) [18:22:31] [Server thread/CRITICAL]: #13 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object padreon\CreativeLimit\Main, object pocketmine\event\player\PlayerGameModeChangeEvent) [18:22:31] [Server thread/CRITICAL]: #14 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerGameModeChangeEvent) [18:22:31] [Server thread/CRITICAL]: #15 src/pocketmine/Player(1396): pocketmine\event\Event->call() [18:22:31] [Server thread/CRITICAL]: #16 plugins/Worlds-master/src/surva/worlds/EventListener(104): pocketmine\Player->setGamemode(integer 2) [18:22:31] [Server thread/CRITICAL]: #17 src/pocketmine/plugin/MethodEventExecutor(42): surva\worlds\EventListener->onEntityLevelChange(object pocketmine\event\entity\EntityLevelChangeEvent) [18:22:31] [Server thread/CRITICAL]: #18 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object surva\worlds\EventListener, object pocketmine\event\entity\EntityLevelChangeEvent) [18:22:31] [Server thread/CRITICAL]: #19 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityLevelChangeEvent) [18:22:31] [Server thread/CRITICAL]: #20 src/pocketmine/entity/Entity(1904): pocketmine\event\Event->call() [18:22:31] [Server thread/CRITICAL]: #21 src/pocketmine/Player(966): pocketmine\entity\Entity->switchLevel(object pocketmine\level\Level) [18:22:31] [Server thread/CRITICAL]: #22 src/pocketmine/entity/Entity(1769): pocketmine\Player->switchLevel(object pocketmine\level\Level) [18:22:31] [Server thread/CRITICAL]: #23 src/pocketmine/entity/Entity(1794): pocketmine\entity\Entity->setPosition(object pocketmine\level\Position) [18:22:31] [Server thread/CRITICAL]: #24 src/pocketmine/entity/Entity(1885): pocketmine\entity\Entity->setPositionAndRotation(object pocketmine\level\Position, double 180.849182, double 3.070053) [18:22:31] [Server thread/CRITICAL]: #25 src/pocketmine/Player(3943): pocketmine\entity\Entity->teleport(object pocketmine\level\Position, double 180.849182, double 3.070053) [18:22:31] [Server thread/CRITICAL]: #26 plugins/MSpawns_dev-12.phar/src/MSpawns/MSpawns(325): pocketmine\Player->teleport(object pocketmine\level\Position, double 180.849182, double 3.070053) [18:22:31] [Server thread/CRITICAL]: #27 plugins/MSpawns_dev-12.phar/src/MSpawns/EventListener(71): MSpawns\MSpawns->teleportToHub(object pocketmine\Player) [18:22:31] [Server thread/CRITICAL]: #28 src/pocketmine/plugin/MethodEventExecutor(42): MSpawns\EventListener->onPlayerJoin(object pocketmine\event\player\PlayerJoinEvent) [18:22:31] [Server thread/CRITICAL]: #29 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object MSpawns\EventListener, object pocketmine\event\player\PlayerJoinEvent) [18:22:31] [Server thread/CRITICAL]: #30 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerJoinEvent) [18:22:31] [Server thread/CRITICAL]: #31 src/pocketmine/Player(1088): pocketmine\event\Event->call() [18:22:31] [Server thread/CRITICAL]: #32 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(310): pocketmine\Player->doFirstSpawn() [18:22:31] [Server thread/CRITICAL]: #33 src/pocketmine/network/mcpe/protocol/SetLocalPlayerAsInitializedPacket(45): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleSetLocalPlayerAsInitialized(object pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket) [18:22:31] [Server thread/CRITICAL]: #34 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [18:22:31] [Server thread/CRITICAL]: #35 src/pocketmine/network/mcpe/protocol/BatchPacket(127): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket) [18:22:31] [Server thread/CRITICAL]: #36 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [18:22:31] [Server thread/CRITICAL]: #37 src/pocketmine/Player(3273): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [18:22:31] [Server thread/CRITICAL]: #38 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [18:22:31] [Server thread/CRITICAL]: #39 vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[17] 83.59.80.85 61406, object raklib\protocol\EncapsulatedPacket, integer 0) [18:22:31] [Server thread/CRITICAL]: #40 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [18:22:31] [Server thread/CRITICAL]: #41 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [18:22:31] [Server thread/CRITICAL]: #42 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() [18:22:31] [Server thread/CRITICAL]: #43 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [18:22:31] [Server thread/CRITICAL]: #44 src/pocketmine/Server(2157): pocketmine\snooze\SleeperHandler->sleepUntil(double 1607710951.7346) [18:22:31] [Server thread/CRITICAL]: #45 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor() [18:22:31] [Server thread/CRITICAL]: #46 src/pocketmine/Server(1588): pocketmine\Server->start() [18:22:31] [Server thread/CRITICAL]: #47 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/) [18:22:31] [Server thread/CRITICAL]: #48 src/pocketmine/PocketMine(304): pocketmine\server()

[18:22:31] [Server thread/CRITICAL]: ErrorException: "Undefined index: xxpumita" (EXCEPTION) in "plugins/PiggyCustomEnchants_dev-462 (1).phar/src/DaPigGuy/PiggyCustomEnchants/enchants/armor/ShieldedEnchant" at line 35 [18:22:31] [Server thread/CRITICAL]: #0 plugins/PiggyCustomEnchants_dev-462 (1).phar/src/DaPigGuy/PiggyCustomEnchants/enchants/armor/ShieldedEnchant(35): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[25] Undefined index: xxpumita, string[135] phar:///home/container/plugins/PiggyCustomEnchants_dev-462 (1).phar/src/DaPigGuy, integer 35, array[6]) [18:22:31] [Server thread/CRITICAL]: #1 plugins/PiggyCustomEnchants_dev-462 (1).phar/src/DaPigGuy/PiggyCustomEnchants/enchants/traits/ToggleTrait(43): DaPigGuy\PiggyCustomEnchants\enchants\armor\ShieldedEnchant->toggle(object pocketmine\Player, object Wertzui123\Netherite\item\armor\NetheriteHelmet, object pocketmine\inventory\ArmorInventory, integer 0, integer 1, boolean ) [18:22:31] [Server thread/CRITICAL]: #2 plugins/PiggyCustomEnchants_dev-462 (1).phar/src/DaPigGuy/PiggyCustomEnchants/enchants/traits/ToggleTrait(83): DaPigGuy\PiggyCustomEnchants\enchants\ToggleableEnchantment->onToggle(object pocketmine\Player, object Wertzui123\Netherite\item\armor\NetheriteHelmet, object pocketmine\inventory\ArmorInventory, integer 0, integer 1, boolean ) [18:22:31] [Server thread/CRITICAL]: #3 plugins/PiggyCustomEnchants_dev-462 (1).phar/src/DaPigGuy/PiggyCustomEnchants/EventListener(309): DaPigGuy\PiggyCustomEnchants\enchants\ToggleableEnchantment::attemptToggle(object pocketmine\Player, object Wertzui123\Netherite\item\armor\NetheriteHelmet, object pocketmine\item\enchantment\EnchantmentInstance, object pocketmine\inventory\ArmorInventory, integer 0, boolean ) [18:22:31] [Server thread/CRITICAL]: #4 src/pocketmine/plugin/MethodEventExecutor(42): DaPigGuy\PiggyCustomEnchants\EventListener->onQuit(object pocketmine\event\player\PlayerQuitEvent) [18:22:31] [Server thread/CRITICAL]: #5 src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object DaPigGuy\PiggyCustomEnchants\EventListener, object pocketmine\event\player\PlayerQuitEvent) [18:22:31] [Server thread/CRITICAL]: #6 src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerQuitEvent) [18:22:31] [Server thread/CRITICAL]: #7 src/pocketmine/Player(3661): pocketmine\event\Event->call() [18:22:31] [Server thread/CRITICAL]: #8 src/pocketmine/network/mcpe/RakLibInterface(176): pocketmine\Player->close(object pocketmine\lang\TranslationContainer, string[21] Internal server error) [18:22:31] [Server thread/CRITICAL]: #9 vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[17] 83.59.80.85 61406, object raklib\protocol\EncapsulatedPacket, integer 0) [18:22:31] [Server thread/CRITICAL]: #10 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [18:22:31] [Server thread/CRITICAL]: #11 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [18:22:31] [Server thread/CRITICAL]: #12 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() [18:22:31] [Server thread/CRITICAL]: #13 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [18:22:31] [Server thread/CRITICAL]: #14 src/pocketmine/Server(2157): pocketmine\snooze\SleeperHandler->sleepUntil(double 1607710951.7346) [18:22:31] [Server thread/CRITICAL]: #15 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor() [18:22:31] [Server thread/CRITICAL]: #16 src/pocketmine/Server(1588): pocketmine\Server->start() [18:22:31] [Server thread/CRITICAL]: #17 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/) [18:22:31] [Server thread/CRITICAL]: #18 src/pocketmine/PocketMine(304): pocketmine\server()

Another one

minijaham commented 3 years ago

Don't use PiggyCustomEnchants with an unsupported feature in PocketMine-MP(Netherite)

The plugin's code doesn't support Netherite tools yet.