WorldGuard giving an error and not working after /reload, working correctly upon restart (Spigot 1.14.1)
LadyCailinBot opened this issue ยท 2 comments
WORLDGUARD-4093 - Reported by takatalvi.1
Hi, I've been having this issue with the latest build (1893), unfortunately I cannot say if it also involves any previous builds. When the server starts, everything works correctly (btw the new interactive UI is absolutely mindblowing, guys), but when I use /reload, WG fails to load with the below exception. After the reload, WG is not working at all, Spigot doesn't register its commands, the regions are not working, it's as if WG was not installed at all. Meanwhile the workaround is to simply avoid using /reload, but I thought it would be best to share this error.
I'm running the latest Spigot 1.14.1 (git-Spigot-03bd4b0-17da342) but it's been the same since a few Spigot builds ago.
Thanks!
[11:23:21] [Server thread/ERROR]: Error occurred while enabling WorldGuard v7.0.0-SNAPSHOT;1893-4871752 (Is it up to date?)
java.lang.NullPointerException: null
at com.sk89q.worldguard.bukkit.BukkitWorldConfiguration.loadConfiguration(BukkitWorldConfiguration.java:258) ~[?:?]
at com.sk89q.worldguard.bukkit.BukkitWorldConfiguration.<init>(BukkitWorldConfiguration.java:94) ~[?:?]
at com.sk89q.worldguard.bukkit.BukkitConfigurationManager.get(BukkitConfigurationManager.java:87) ~[?:?]
at com.sk89q.worldguard.bukkit.BukkitConfigurationManager.postLoad(BukkitConfigurationManager.java:69) ~[?:?]
at com.sk89q.worldguard.config.YamlConfigurationManager.load(YamlConfigurationManager.java:103) ~[?:?]
at com.sk89q.worldguard.bukkit.BukkitWorldGuardPlatform.load(BukkitWorldGuardPlatform.java:124) ~[?:?]
at com.sk89q.worldguard.WorldGuard.setup(WorldGuard.java:98) ~[?:?]
at com.sk89q.worldguard.bukkit.WorldGuardPlugin.onEnable(WorldGuardPlugin.java:135) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[minecraft_server.jar:git-Spigot-03bd4b0-17da342]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:352) [minecraft_server.jar:git-Spigot-03bd4b0-17da342]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:416) [minecraft_server.jar:git-Spigot-03bd4b0-17da342]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugin(CraftServer.java:458) [minecraft_server.jar:git-Spigot-03bd4b0-17da342]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugins(CraftServer.java:372) [minecraft_server.jar:git-Spigot-03bd4b0-17da342]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.reload(CraftServer.java:805) [minecraft_server.jar:git-Spigot-03bd4b0-17da342]
at org.bukkit.Bukkit.reload(Bukkit.java:576) [minecraft_server.jar:git-Spigot-03bd4b0-17da342]
at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:27) [minecraft_server.jar:git-Spigot-03bd4b0-17da342]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) [minecraft_server.jar:git-Spigot-03bd4b0-17da342]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.dispatchCommand(CraftServer.java:707) [minecraft_server.jar:git-Spigot-03bd4b0-17da342]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.dispatchServerCommand(CraftServer.java:692) [minecraft_server.jar:git-Spigot-03bd4b0-17da342]
at net.minecraft.server.v1_14_R1.DedicatedServer.handleCommandQueue(DedicatedServer.java:433) [minecraft_server.jar:git-Spigot-03bd4b0-17da342]
at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:397) [minecraft_server.jar:git-Spigot-03bd4b0-17da342]
at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:956) [minecraft_server.jar:git-Spigot-03bd4b0-17da342]
at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:801) [minecraft_server.jar:git-Spigot-03bd4b0-17da342]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]```
Comment by me4502
Pastebin your entire log, and don't use /reload
The way /reload works is fundamentally broken and can cause weird unrecoverable issues for plugins within Spigot or Java itself.
Comment by takatalvi.1
Here's the entire log where I only started the server, reloaded the plugins and then stopped it again. I highlighted the moments for START, RELOAD and STOP.
Also, please note line 214 where WG mentions a problem with a deprecated event during start.