Minecraft | Block placed, Error in the console?

bi
- in Plugins
1

Hello to my plugin it is like that when you put a block that then an error in the console comes although an inventory has nothing to do with a block.

[12:29:20 ERROR]: Could not pass event PlayerInteractEvent to LobbySystem-byOnyx v1.0
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader $ 1.execute (JavaPluginLoader.java:310) ~ [spigot.jar: git-spigot-db6de12-18fbb24]
at org.bukkit.plugin.RegisteredListener.callEvent (RegisteredListener.java:62) ~ [spigot.jar: git-spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.fireEvent (SimplePluginManager.java:502) [spigot.jar: git-spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.callEvent (SimplePluginManager.java:487) [spigot.jar: git-spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callPlayerInteractEvent (CraftEventFactory.java:228) [spigot.jar: git-spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerInteractManager.interact (PlayerInteractManager.java:463) [spigot.jar: git-spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.a (PlayerConnection.java:759) [spigot.jar: git-spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInBlockPlace.a (PacketPlayInBlockPlace.java:52) [spigot.jar: git-spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInBlockPlace.a (PacketPlayInBlockPlace.java:1) [spigot.jar: git-spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils $ 1.run (SourceFile: 13) [spigot.jar: git-spigot-db6de12-18fbb24]
at java.util.concurrent.Executors $ RunnableAdapter.call (Executors.java:511) [?: 1.8.0_181]
at java.util.concurrent.FutureTask.run (FutureTask.java:266) [?: 1.8.0_181]
at net.minecraft.server.v1_8_R3.SystemUtils.a (SourceFile: 44) [spigot.jar: git-spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B (MinecraftServer.java:715) [spigot.jar: git-spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B (DedicatedServer.java:374) [spigot.jar: git-spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A (MinecraftServer.java:654) [spigot.jar: git-spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run (MinecraftServer.java:557) [spigot.jar: git-spigot-db6de12-18fbb24]
at java.lang.Thread.run (Thread.java:748) [?: 1.8.0_181]
Caused by: java.lang.NullPointerException
at me.onyxzium.inventorys.CompassInv.onInt (CompassInv.java:53) ~ [?:?]
at sun.reflect.GeneratedMethodAccessor23.invoke (Unknown Source) ~ [?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) ~ [?: 1.8.0_181]
at java.lang.reflect.Method.invoke (Method.java:498) ~ [?: 1.8.0_181]
at org.bukkit.plugin.java.JavaPluginLoader $ 1.execute (JavaPluginLoader.java:306) ~ [spigot.jar: git-spigot-db6de12-18fbb24]
… 17 more

Co

Would you provide the code of the CompassInv class to us?