• Hello Guest! Did you know that ProjectKorra has an official Discord server? A lot of discussion about the official server, development process, and community discussion happens over there. Feel free to join now by clicking the link below.

    Join the Discord Server

[Bug] Could not pass event PlayerToggleSneakEvent

Sam1370

Verified Member
So whenever I try to use a bending ability that uses toggle sneak, this happens. Below I am using the Lightning ability. I am running PaperSpigot 1.11.2 and the latest version of ProjectKorra. I am also using PerWorldPlugins, the most recent one, by SharerXYZ on spigot. Is that an issue? (even though it says it isn't xD)
EDIT: I decompiled the plugin (is that allowed) and I think it's because I don't have FerroControl enabled, is that the problem? EDIT 2: I enabled FerroControl and it still doesn't work :(

EDIT 2: I removed PerWorldPlugins and it still does not work.
31.07 17:52:09 [Server] ERROR **** THIS IS NOT AN ISSUE TO DO WITH PER WORLD PLUGINS **** 31.07 17:52:09 [Server] INFO Could not pass event PlayerToggleSneakEvent to ProjectKorra v1.8.4 31.07 17:52:09 [Server] INFO org.bukkit.event.EventException 31.07 17:52:09 [Server] INFO at us.Myles.PWP.TransparentListeners.PerWorldPluginLoader$1.execute(PerWorldPluginLoader.java:122) ~[?:?] 31.07 17:52:09 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:09 [Server] INFO at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:36) ~[patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:09 [Server] INFO at us.Myles.PWP.TransparentListeners.PWPTimedRegisteredListener.callEvent(PWPTimedRegisteredListener.java:30) ~[?:?] 31.07 17:52:09 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517) ~[patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:09 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:502) ~[patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:09 [Server] INFO at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1451) ~[patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:09 [Server] INFO at net.minecraft.server.v1_11_R1.PacketPlayInEntityAction.a(SourceFile:43) ~[patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:09 [Server] INFO at net.minecraft.server.v1_11_R1.PacketPlayInEntityAction.a(SourceFile:9) ~[patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:09 [Server] INFO at net.minecraft.server.v1_11_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14) ~[patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:09 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_66] 31.07 17:52:09 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_66] 31.07 17:52:09 [Server] INFO at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) [patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:09 [Server] INFO at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:839) [patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:09 [Server] INFO at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:403) [patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:09 [Server] INFO at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:763) [patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:09 [Server] INFO at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:661) [patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:09 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66] 31.07 17:52:09 [Server] INFO Caused by: java.lang.NullPointerException 31.07 17:52:09 [Server] INFO at com.projectkorra.projectkorra.PKListener.onPlayerSneak(PKListener.java:1266) ~[?:?] 31.07 17:52:09 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66] 31.07 17:52:09 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_66] 31.07 17:52:09 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_66] 31.07 17:52:09 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_66] 31.07 17:52:09 [Server] INFO at us.Myles.PWP.TransparentListeners.PerWorldPluginLoader$1.execute(PerWorldPluginLoader.java:120) ~[?:?] 31.07 17:52:09 [Server] INFO ... 17 more 31.07 17:52:10 [Server] INFO CONSOLE issued server command: /list 31.07 17:52:10 [Server] INFO default: Sam1370 31.07 17:52:19 [Server] ERROR **** THIS IS NOT AN ISSUE TO DO WITH PER WORLD PLUGINS **** 31.07 17:52:19 [Server] INFO Could not pass event PlayerToggleSneakEvent to ProjectKorra v1.8.4 31.07 17:52:19 [Server] INFO org.bukkit.event.EventException 31.07 17:52:19 [Server] INFO at us.Myles.PWP.TransparentListeners.PerWorldPluginLoader$1.execute(PerWorldPluginLoader.java:122) ~[?:?] 31.07 17:52:19 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:19 [Server] INFO at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:36) ~[patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:19 [Server] INFO at us.Myles.PWP.TransparentListeners.PWPTimedRegisteredListener.callEvent(PWPTimedRegisteredListener.java:30) ~[?:?] 31.07 17:52:19 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517) ~[patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:19 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:502) ~[patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:19 [Server] INFO at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1451) ~[patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:19 [Server] INFO at net.minecraft.server.v1_11_R1.PacketPlayInEntityAction.a(SourceFile:43) ~[patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:19 [Server] INFO at net.minecraft.server.v1_11_R1.PacketPlayInEntityAction.a(SourceFile:9) ~[patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:19 [Server] INFO at net.minecraft.server.v1_11_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14) ~[patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:19 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_66] 31.07 17:52:19 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_66] 31.07 17:52:19 [Server] INFO at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) [patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:19 [Server] INFO at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:839) [patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:19 [Server] INFO at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:403) [patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:19 [Server] INFO at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:763) [patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:19 [Server] INFO at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:661) [patched_1.11.2.jar:git-Paper-1104] 31.07 17:52:19 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66] 31.07 17:52:19 [Server] INFO Caused by: java.lang.NullPointerException 31.07 17:52:19 [Server] INFO at com.projectkorra.projectkorra.PKListener.onPlayerSneak(PKListener.java:1266) ~[?:?] 31.07 17:52:19 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66] 31.07 17:52:19 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_66] 31.07 17:52:19 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_66] 31.07 17:52:19 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_66] 31.07 17:52:19 [Server] INFO at us.Myles.PWP.TransparentListeners.PerWorldPluginLoader$1.execute(PerWorldPluginLoader.java:120) ~[?:?] 31.07 17:52:19 [Server] INFO ... 17 more
 
Last edited:

xNuminousx

Verified Member
Okay, well I removed perworldplugins and it still does not work. The error is still there.
You restart the server after removing it? Because the error talking a lot about PWP so if it's not there and you're still getting the error then it had to have changed somehow.
 

Sam1370

Verified Member
You restart the server after removing it? Because the error talking a lot about PWP so if it's not there and you're still getting the error then it had to have changed somehow.
Yep. Also, for some reason it worked like a day ago with PerWorldPlugins installed... I think something happened and it stopped working
EDIT: I'm removing the ProjectKorra folder and downloading a new ProjectKorra.jar from Spigot...I hope it works :)
EDIT 2: I did that and it worked, for some reason xd
 
Last edited:

xNuminousx

Verified Member
Oh okay lol. Glad it's solved then. It could have been an issue with reloads I suppose. If you've been doing that. Reloads have been known to break things around here.
 

Sam1370

Verified Member
Oh okay lol. Glad it's solved then. It could have been an issue with reloads I suppose. If you've been doing that. Reloads have been known to break things around here.
Using /pk reload or /reload? I haven't done /reload or /rl in like a month. xD
And thanks for following me :D
 

Vahagn

Staff member
Plugin Developer
Verified Member
NEVER EVER /reload. Especially when you have a lot of plugins that work together, or a lot of plugins in general. This can cause problems due to memory leaks, (ex. a poorly coded plugin can have many memory leaks, especially if the plugin is fairly big as they are harder to find). So if you need to reload ProjectKorra's configuration specifically you can do /bending reload which reloads the configuration, which saves you the entire headache of reloading all of your plugins, and will potentially help your server in the long run; do not use /reload. Every server needs care and attention to work properly. /reload is like putting your server on a treadmill for 5 minutes at max power, stopping for 10 seconds, then kicking it back up to full power. Restarting your server is like giving your server a water bottle and a graham cracker after a marathon, then letting it slowly boot back up.

Sorry for the horrible analogy. The main essence of this is, don't use /reload, it is always better if you use the plugins own reload command, or get a plugin that reloads the server safely.
 

MeskenasBoii

Verified Member
NEVER EVER /reload. Especially when you have a lot of plugins that work together, or a lot of plugins in general. This can cause problems due to memory leaks, (ex. a poorly coded plugin can have many memory leaks, especially if the plugin is fairly big as they are harder to find). So if you need to reload ProjectKorra's configuration specifically you can do /bending reload which reloads the configuration, which saves you the entire headache of reloading all of your plugins, and will potentially help your server in the long run; do not use /reload. Every server needs care and attention to work properly. /reload is like putting your server on a treadmill for 5 minutes at max power, stopping for 10 seconds, then kicking it back up to full power. Restarting your server is like giving your server a water bottle and a graham cracker after a marathon, then letting it slowly boot back up.

Sorry for the horrible analogy. The main essence of this is, don't use /reload, it is always better if you use the plugins own reload command, or get a plugin that reloads the server safely.
Made the connection now?
 
Top