[X] I'm using the very latest version of ItemsAdder and its dependencies.
[X] I already searched on this Github page to check if the same issue was already reported.
[X] I already searched on the plugin wiki to know if a solution is already known.
[X] I already asked on the #💬ia-community-help channel on Discord to know if anyone already has a solution for the issue.
Discord tag (optional)
GlobusOk#5048
What happened?
I faced such a problem last year
Steps to reproduce the issue
I faced such a problem last year, with the help of the CMI plugin, I imposed a command on the subject, when using the subject it gives an error. Version 3,0,2 did not run at all. To demonstrate the error, I can show it on the demo.
Server version
Spigot 1.18.2-R0.1-SNAPSHOT
ItemsAdder Version
ItemsAdder_3.0.3-beta4.jar
ProtocolLib Version
ProtocolLib v4.8.0
LoneLibs Version
LoneLibs v1.0.18
LightAPI Version (optional)
No response
LibsDisguises Version (optional)
No response
FULL server log
No response
Error (optional)
[15:47:39] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to ItemsAdder v3.0.3-beta4
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[spigot-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589) ~[spigot-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576) ~[spigot-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_18_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:505) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at org.bukkit.craftbukkit.v1_18_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:472) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at org.bukkit.craftbukkit.v1_18_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:468) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:1604) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at net.minecraft.network.protocol.game.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:28) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at net.minecraft.network.protocol.game.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:1) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:31) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at net.minecraft.server.TickTask.run(SourceFile:18) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at net.minecraft.util.thread.IAsyncTaskHandler.d(SourceFile:157) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(SourceFile:23) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1190) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:1) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at net.minecraft.util.thread.IAsyncTaskHandler.y(SourceFile:131) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at net.minecraft.server.MinecraftServer.be(MinecraftServer.java:1169) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at net.minecraft.server.MinecraftServer.y(MinecraftServer.java:1162) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at net.minecraft.util.thread.IAsyncTaskHandler.c(SourceFile:140) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1146) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1051) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304) ~[spigot-1.18.2-R0.1-SNAPSHOT.jar:3460-Spigot-ffceeae-9ed7e4f]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "org.bukkit.block.Block.getType()" because the return value of "org.bukkit.event.player.PlayerInteractEvent.getClickedBlock()" is null
at dev.lone.itemsadder.main.cU.h(SourceFile:183) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-api-1.18.2-R0.1-SNAPSHOT.jar:?]
... 23 more
Terms
Discord tag (optional)
GlobusOk#5048
What happened?
I faced such a problem last year
Steps to reproduce the issue
I faced such a problem last year, with the help of the CMI plugin, I imposed a command on the subject, when using the subject it gives an error. Version 3,0,2 did not run at all. To demonstrate the error, I can show it on the demo.
Server version
Spigot 1.18.2-R0.1-SNAPSHOT
ItemsAdder Version
ItemsAdder_3.0.3-beta4.jar
ProtocolLib Version
ProtocolLib v4.8.0
LoneLibs Version
LoneLibs v1.0.18
LightAPI Version (optional)
No response
LibsDisguises Version (optional)
No response
FULL server log
No response
Error (optional)
ItemsAdder config.yml
Problematic items yml configuration file (optional)
No response
Other files, you can drag and drop them here to upload. (optional)
No response
Screenshots/Videos (you can drag and drop files or paste links)
No response