Dans-Plugins / Fiefs

An expansion for Medieval Factions that allows faction members to create fiefs. Fiefs function as sub-factions, essentially.
GNU General Public License v3.0
0 stars 2 forks source link

Fix null error occurring when handling the Player Interact Event. #103

Closed dmccoystephenson closed 2 years ago

dmccoystephenson commented 2 years ago

21.09 01:01:05 [Server] Server thread/ERROR Could not pass event PlayerInteractEvent to Fiefs v0.9 21.09 01:01:05 [Server] INFO org.bukkit.event.EventException: null 21.09 01:01:05 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:319) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:05 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:05 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:05 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:05 [Server] INFO at org.bukkit.craftbukkit.v1_16_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:481) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:05 [Server] INFO at net.minecraft.server.v1_16_R3.PlayerInteractManager.a(PlayerInteractManager.java:447) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:05 [Server] INFO at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:1356) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:05 [Server] INFO at net.minecraft.server.v1_16_R3.PacketPlayInUseItem.a(PacketPlayInUseItem.java:27) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:05 [Server] INFO at net.minecraft.server.v1_16_R3.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:05 [Server] INFO at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:05 [Server] INFO at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:05 [Server] INFO at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(SourceFile:144) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:05 [Server] INFO at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:05 [Server] INFO at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(SourceFile:118) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:07 [Server] INFO at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:942) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:07 [Server] INFO at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:935) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:07 [Server] INFO at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeAll(SourceFile:103) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:07 [Server] INFO at net.minecraft.server.v1_16_R3.MinecraftServer.sleepForTick(MinecraftServer.java:918) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:07 [Server] INFO at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:851) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:07 [Server] INFO at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$0(MinecraftServer.java:164) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:07 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292] 21.09 01:01:07 [Server] INFO Caused by: java.lang.NullPointerException 21.09 01:01:07 [Server] INFO at dansplugins.fiefs.eventhandlers.InteractionHandler.shouldEventBeCancelled(InteractionHandler.java:199) ~[?:?] 21.09 01:01:07 [Server] INFO at dansplugins.fiefs.eventhandlers.InteractionHandler.handle(InteractionHandler.java:82) ~[?:?] 21.09 01:01:07 [Server] INFO at sun.reflect.GeneratedMethodAccessor260.invoke(Unknown Source) ~[?:?] 21.09 01:01:07 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_292] 21.09 01:01:07 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_292] 21.09 01:01:07 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:315) ~[spigot-1.16.5.jar:2991-Spigot-018b9a0-f3f3094] 21.09 01:01:07 [Server] INFO ... 20 more