LeeTheTech / OneStopShop

Advanced GUI item shop for Spigot Minecraft servers. Made with Java 16.
https://www.spigotmc.org/resources/onestopshop-free-gui-item-shop.76640/
2 stars 5 forks source link

[BUG] 1.12.2 If I activate the vault and reinstall the plugin and buy or sell something from the shop I get an error #28

Open TeQTabanca opened 2 years ago

TeQTabanca commented 2 years ago

[20:36:19 ERROR]: Could not pass event InventoryClickEvent to OneStopShop v1.1.9 org.bukkit.event.EventException: null at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[server.jar:git-Spigot-79a30d7-acbc348] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[server.jar:git-Spigot-79a30d7-acbc348] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) [server.jar:git-Spigot-79a30d7-acbc348] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) [server.jar:git-Spigot-79a30d7-acbc348] at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1893) [server.jar:git-Spigot-79a30d7-acbc348] at net.minecraft.server.v1_12_R1.PacketPlayInWindowClick.a(SourceFile:33) [server.jar:git-Spigot-79a30d7-acbc348] at net.minecraft.server.v1_12_R1.PacketPlayInWindowClick.a(SourceFile:10) [server.jar:git-Spigot-79a30d7-acbc348] at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-79a30d7-acbc348] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [server.jar:git-Spigot-79a30d7-acbc348] at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [server.jar:git-Spigot-79a30d7-acbc348] at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [server.jar:git-Spigot-79a30d7-acbc348] at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [server.jar:git-Spigot-79a30d7-acbc348] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [server.jar:git-Spigot-79a30d7-acbc348] at java.lang.Thread.run(Thread.java:829) [?:?] Caused by: java.lang.NullPointerException at lee.code.onestopshop.PU.givePlayerItems(PU.java:121) ~[OneStopShop.jar:?] at lee.code.onestopshop.menusystem.menus.TransactionMenu.handleMenu(TransactionMenu.java:56) ~[OneStopShop.jar:?] at lee.code.onestopshop.listeners.MenuListener.onMenuClick(MenuListener.java:19) ~[OneStopShop.jar:?] at jdk.internal.reflect.GeneratedMethodAccessor132.invoke(Unknown Source) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[server.jar:git-Spigot-79a30d7-acbc348] ... 15 more