Gamemode change by teleporting from another world into a flagged region
LadyCailinBot opened this issue ยท 2 comments
WORLDGUARD-3411 - Reported by Bronzeteufel
When I warp from another world (!) into a region with flag "gamemode: Adventure", worldguard won't be able to change the gamemode & inventory to gamemode adventure. Any ideas?
There's also an error in console:
Zeile 553: [01:29:47] [Server thread/ERROR]: Could not pass event PlayerGameModeChangeEvent to WorldGuard v6.0.0-SNAPSHOT.1587-
I'm running the latest WorldGuard dev build, latest Multiinv & latest spigot 1.8
Comment by wizjany
paste the full error. pretty sure worldguard only supports creative and survival atm
Comment by Bronzeteufel
It only happens if i warp from ANOTHER world into this region. There aren't any issues when I warp from the same world.
Here's the full error:
[01:29:47] [Server thread/ERROR]: Could not pass event PlayerGameModeChangeEvent to WorldGuard v6.0.0-SNAPSHOT.1587-
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.craftbukkit.v1_8_R1.entity.CraftPlayer.setGameMode(CraftPlayer.java:757) [craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at com.sk89q.worldguard.session.handler.GameModeFlag.updateGameMode(GameModeFlag.java:54) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at com.sk89q.worldguard.session.handler.GameModeFlag.onInitialValue(GameModeFlag.java:69) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at com.sk89q.worldguard.session.handler.GameModeFlag.onInitialValue(GameModeFlag.java:33) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at com.sk89q.worldguard.session.handler.FlagValueChangeHandler.initialize(FlagValueChangeHandler.java:45) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at com.sk89q.worldguard.session.Session.initialize(Session.java:116) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at com.sk89q.worldguard.session.SessionManager.createSession(SessionManager.java:154) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at com.sk89q.worldguard.session.SessionManager.access$200(SessionManager.java:46) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at com.sk89q.worldguard.session.SessionManager$2.load(SessionManager.java:68) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at com.sk89q.worldguard.session.SessionManager$2.load(SessionManager.java:65) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at com.sk89q.worldguard.internal.guava.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3508) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at com.sk89q.worldguard.internal.guava.cache.LocalCache$Segment.loadSync(LocalCache.java:2300) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at com.sk89q.worldguard.internal.guava.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2263) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at com.sk89q.worldguard.internal.guava.cache.LocalCache$Segment.get(LocalCache.java:2178) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at com.sk89q.worldguard.internal.guava.cache.LocalCache.get(LocalCache.java:3918) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at com.sk89q.worldguard.internal.guava.cache.LocalCache.getOrLoad(LocalCache.java:3922) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at com.sk89q.worldguard.internal.guava.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4805) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at com.sk89q.worldguard.internal.guava.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4811) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at com.sk89q.worldguard.session.SessionManager.get(SessionManager.java:181) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at com.sk89q.worldguard.session.SessionManager.onPlayerJoin(SessionManager.java:187) [worldguard-6.0.0-SNAPSHOT.jar:6.0.0-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_71]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) [craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.PlayerList.onPlayerJoin(PlayerList.java:272) [craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.PlayerList.a(PlayerList.java:156) [craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.LoginListener.b(LoginListener.java:109) [craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.LoginListener.c(LoginListener.java:41) [craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.NetworkManager.a(NetworkManager.java:159) [craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.ServerConnection.c(ServerConnection.java:82) [craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:800) [craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at java.lang.Thread.run(Unknown Source) [?:1.7.0_71]
Caused by: java.lang.IllegalStateException: Recursive load of: com.sk89q.worldguard.session.SessionManager$CacheKey@8bf9072e
at com.google.common.base.Preconditions.checkState(Preconditions.java:200) ~[craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
at com.sk89q.worldguard.internal.guava.cache.LocalCache$Segment.waitForLoadingValue(LocalCache.java:2280) ~[?:?]
at com.sk89q.worldguard.internal.guava.cache.LocalCache$Segment.get(LocalCache.java:2172) ~[?:?]
at com.sk89q.worldguard.internal.guava.cache.LocalCache.get(LocalCache.java:3918) ~[?:?]
at com.sk89q.worldguard.internal.guava.cache.LocalCache.getOrLoad(LocalCache.java:3922) ~[?:?]
at com.sk89q.worldguard.internal.guava.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4805) ~[?:?]
at com.sk89q.worldguard.internal.guava.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4811) ~[?:?]
at com.sk89q.worldguard.session.SessionManager.get(SessionManager.java:181) ~[?:?]
at com.sk89q.worldguard.bukkit.listener.WorldGuardPlayerListener.onPlayerGameModeChange(WorldGuardPlayerListener.java:87) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_71]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[craftbukkit.jar:git-Spigot-c3c767f-33d5de3]
... 42 more