GC-spigot / AdvancedPets

AdvancedPets is the first Spigot Custom Pets Plugin 1.8 - 1.18.1 that allows you to create custom pets in-game without any programming knowledge. Pets are integrated with custom abilities, skins and way more.
5 stars 1 forks source link

[1.21.1] Cannot invoke "net.advancedplugins.pets.objects.PlayerPet.getPet()" because "<local8>" is null #216

Open smscentras opened 1 month ago

smscentras commented 1 month ago

Describe the bug

[03:18:40 ERROR]: Could not pass event AsyncPlayerChatEvent to AdvancedPets v2.12.8 java.lang.NullPointerException: Cannot invoke "net.advancedplugins.pets.objects.PlayerPet.getPet()" because "" is null at AdvancedPets-2.12.8.jar/net.advancedplugins.pets.handlers.PetRenameHandler.processRename(PetRenameHandler.java:96) ~[AdvancedPets-2.12.8.jar:?] at AdvancedPets-2.12.8.jar/net.advancedplugins.pets.listeners.pets.PetRenameListener.onChat(PetRenameListener.java:18) ~[AdvancedPets-2.12.8.jar:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor1066.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:1.21.1-2311-0fa9a50] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.21.1.jar:1.21.1-2311-0fa9a50] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[purpur-1.21.1.jar:1.21.1-2311-0fa9a50] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:630) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.adventure.ChatProcessor.post(ChatProcessor.java:378) ~[purpur-1.21.1.jar:1.21.1-2311-0fa9a50] at io.papermc.paper.adventure.ChatProcessor.process(ChatProcessor.java:85) ~[purpur-1.21.1.jar:1.21.1-2311-0fa9a50] at net.minecraft.server.network.ServerGamePacketListenerImpl.chat(ServerGamePacketListenerImpl.java:2493) ~[purpur-1.21.1.jar:1.21.1-2311-0fa9a50] at net.minecraft.server.network.ServerGamePacketListenerImpl.broadcastChatMessage(ServerGamePacketListenerImpl.java:2609) ~[purpur-1.21.1.jar:1.21.1-2311-0fa9a50] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChat$13(ServerGamePacketListenerImpl.java:2257) ~[purpur-1.21.1.jar:1.21.1-2311-0fa9a50] at net.minecraft.util.FutureChain.lambda$append$1(FutureChain.java:25) ~[purpur-1.21.1.jar:1.21.1-2311-0fa9a50] at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718) ~[?:?] at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

How to reproduce

Purpur 1.21.1 AdvancedPets 2.12.8

Screenshots / Videos

No response

Server Log

No response

homerek111 commented 1 month ago

the same issue here - can't respawn any pet https://pastebin.com/Rg92ryTA