CommandHelper

CommandHelper

46.5k Downloads

playerTeleportevent or worldguard ?

LadyCailinBot opened this issue ยท 3 comments

commented

CMDHELPER-3125 - Reported by sat

i use : "bind(player_teleport, null, null, @event,"
on player teleport the code no work, player has teleported, but in console i have this :

[10:11:15 ERROR]: Could not pass event PlayerTeleportEvent to CommandHelper v3.3.2-SNAPSHOT.3074-
org.bukkit.event.EventException
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at org.bukkit.craftbukkit.v1_9_R1.entity.CraftPlayer.teleport(CraftPlayer.java:441) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at org.bukkit.craftbukkit.v1_9_R1.entity.CraftEntity.teleport(CraftEntity.java:228) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at com.sk89q.worldedit.bukkit.BukkitPlayer.setPosition(BukkitPlayer.java:127) [worldedit-bukkit-6.1.1-3448.jar:?]
	at com.sk89q.worldedit.extension.platform.PlayerProxy.setPosition(PlayerProxy.java:108) [worldedit-bukkit-6.1.1-3448.jar:?]
	at com.sk89q.worldedit.extension.platform.AbstractPlayerActor.setPosition(AbstractPlayerActor.java:428) [worldedit-bukkit-6.1.1-3448.jar:?]
	at com.sk89q.worldedit.extension.platform.AbstractPlayerActor.findFreePosition(AbstractPlayerActor.java:117) [worldedit-bukkit-6.1.1-3448.jar:?]
	at com.sk89q.worldedit.extension.platform.PlatformManager.handlePlayerInput(PlatformManager.java:408) [worldedit-bukkit-6.1.1-3448.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_80]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_80]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_80]
	at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_80]
	at com.sk89q.worldedit.util.eventbus.MethodEventHandler.dispatch(MethodEventHandler.java:58) [worldedit-bukkit-6.1.1-3448.jar:?]
	at com.sk89q.worldedit.util.eventbus.EventHandler.handleEvent(EventHandler.java:73) [worldedit-bukkit-6.1.1-3448.jar:?]
	at com.sk89q.worldedit.util.eventbus.EventBus.dispatch(EventBus.java:187) [worldedit-bukkit-6.1.1-3448.jar:?]
	at com.sk89q.worldedit.util.eventbus.EventBus.post(EventBus.java:173) [worldedit-bukkit-6.1.1-3448.jar:?]
	at com.sk89q.worldedit.WorldEdit.handleArmSwing(WorldEdit.java:665) [worldedit-bukkit-6.1.1-3448.jar:?]
	at com.sk89q.worldedit.bukkit.WorldEditListener.onPlayerInteract(WorldEditListener.java:153) [worldedit-bukkit-6.1.1-3448.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_80]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_80]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_80]
	at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_80]
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at org.bukkit.craftbukkit.v1_9_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:226) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at org.bukkit.craftbukkit.v1_9_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:193) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at org.bukkit.craftbukkit.v1_9_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:189) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at net.minecraft.server.v1_9_R1.PlayerConnection.a(PlayerConnection.java:1340) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at net.minecraft.server.v1_9_R1.PacketPlayInArmAnimation.a(SourceFile:32) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at net.minecraft.server.v1_9_R1.PacketPlayInArmAnimation.a(SourceFile:9) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at net.minecraft.server.v1_9_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_80]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_80]
	at net.minecraft.server.v1_9_R1.SystemUtils.a(SourceFile:45) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:721) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	at java.lang.Thread.run(Thread.java:745) [?:1.7.0_80]
Caused by: java.lang.NoClassDefFoundError: lib/shaded/worldguard/util/profile/cache/ProfileCache
	at io.github.jbaero.skcompat.LazyAbstraction.regionsAt(LazyAbstraction.java:50) ~[?:?]
	at io.github.jbaero.skcompat.LazyAbstraction.regionsAt(LazyAbstraction.java:79) ~[?:?]
	at io.github.jbaero.skcompat.SKWorldGuard$sk_current_regions.exec(SKWorldGuard.java:493) ~[?:?]
	at com.laytonsmith.core.Script.eval(Script.java:375) ~[?:?]
	at com.laytonsmith.core.Script.eval(Script.java:344) ~[?:?]
	at com.laytonsmith.core.Script.eval(Script.java:344) ~[?:?]
	at com.laytonsmith.core.Script.seval(Script.java:252) ~[?:?]
	at com.laytonsmith.core.functions.BasicLogic$_if.execs(BasicLogic.java:85) ~[?:?]
	at com.laytonsmith.core.Script.eval(Script.java:334) ~[?:?]
	at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1976) ~[?:?]
	at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1933) ~[?:?]
	at com.laytonsmith.core.events.AbstractEvent.execute(AbstractEvent.java:109) ~[?:?]
	at com.laytonsmith.core.events.BoundEvent.execute(BoundEvent.java:320) ~[?:?]
	at com.laytonsmith.core.events.BoundEvent.trigger(BoundEvent.java:278) ~[?:?]
	at com.laytonsmith.core.events.EventUtils.FireListeners(EventUtils.java:252) ~[?:?]
	at com.laytonsmith.core.events.EventUtils.TriggerListener(EventUtils.java:239) ~[?:?]
	at com.laytonsmith.abstraction.bukkit.events.drivers.BukkitPlayerListener.onPlayerTeleport(BukkitPlayerListener.java:220) ~[?:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_80]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_80]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_80]
	at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_80]
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	... 43 more
Caused by: java.lang.ClassNotFoundException: lib.shaded.worldguard.util.profile.cache.ProfileCache
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366) ~[?:1.7.0_80]
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[?:1.7.0_80]
	at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_80]
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[?:1.7.0_80]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_80]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_80]
	at io.github.jbaero.skcompat.LazyAbstraction.regionsAt(LazyAbstraction.java:50) ~[?:?]
	at io.github.jbaero.skcompat.LazyAbstraction.regionsAt(LazyAbstraction.java:79) ~[?:?]
	at io.github.jbaero.skcompat.SKWorldGuard$sk_current_regions.exec(SKWorldGuard.java:493) ~[?:?]
	at com.laytonsmith.core.Script.eval(Script.java:375) ~[?:?]
	at com.laytonsmith.core.Script.eval(Script.java:344) ~[?:?]
	at com.laytonsmith.core.Script.eval(Script.java:344) ~[?:?]
	at com.laytonsmith.core.Script.seval(Script.java:252) ~[?:?]
	at com.laytonsmith.core.functions.BasicLogic$_if.execs(BasicLogic.java:85) ~[?:?]
	at com.laytonsmith.core.Script.eval(Script.java:334) ~[?:?]
	at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1976) ~[?:?]
	at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1933) ~[?:?]
	at com.laytonsmith.core.events.AbstractEvent.execute(AbstractEvent.java:109) ~[?:?]
	at com.laytonsmith.core.events.BoundEvent.execute(BoundEvent.java:320) ~[?:?]
	at com.laytonsmith.core.events.BoundEvent.trigger(BoundEvent.java:278) ~[?:?]
	at com.laytonsmith.core.events.EventUtils.FireListeners(EventUtils.java:252) ~[?:?]
	at com.laytonsmith.core.events.EventUtils.TriggerListener(EventUtils.java:239) ~[?:?]
	at com.laytonsmith.abstraction.bukkit.events.drivers.BukkitPlayerListener.onPlayerTeleport(BukkitPlayerListener.java:220) ~[?:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_80]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_80]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_80]
	at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_80]
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.9.jar:git-Spigot-1a196e1-6f032cd]
	... 43 more
>
i use latest commandhelper #3074 and worldguard #1652

Thanks for all
commented

Comment by PseudoKnight

It's neither. It's SKCompat. Use version 2.0.0 until this is fixed in the extension.
https://letsbuild.net/jenkins/job/SKCompat/24/

commented

Comment by sat

heuu i use SKCompat-2.1.0 the version it's up, no ?

Edit :
Effectivement apres test sa fonctionne.

Exectly after test, it work fine.
thanks.

commented

Comment by PseudoKnight

Fixed in latest SKCompat