WorldEdit icon indicating copy to clipboard operation
WorldEdit copied to clipboard

java.lang.UnsupportedOperationException

Open koboshchan opened this issue 4 months ago • 6 comments

WorldEdit Version

v7.4.4+7546-f9e033f

Platform Version

Folia 26.2

Confirmations

  • [x] I am using the most recent Minecraft release.
  • [x] I am using a version of WorldEdit compatible with my Minecraft version.
  • [x] I am using the latest or recommended version of my platform software.
  • [x] I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
  • [x] I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)

Bug Description

Error on enable/disable.

Expected Behavior

Load properly

Reproduction Steps

  1. install on server
  2. run server

Anything Else?

[14:30:48 INFO]: [WorldGuard] Enabling WorldGuard v7.0.17+2370-e42d8bc [14:30:48 INFO]: [WorldGuard] (world) TNT ignition is PERMITTED. [14:30:48 INFO]: [WorldGuard] (world) Lighters are PERMITTED. [14:30:48 INFO]: [WorldGuard] (world) Lava fire is PERMITTED. [14:30:48 INFO]: [WorldGuard] (world) Fire spread is UNRESTRICTED. [14:30:48 INFO]: [WorldGuard] Loaded configuration for world 'world' [14:30:48 INFO]: [WorldGuard] (world_nether) TNT ignition is PERMITTED. [14:30:48 INFO]: [WorldGuard] (world_nether) Lighters are PERMITTED. [14:30:48 INFO]: [WorldGuard] (world_nether) Lava fire is PERMITTED. [14:30:48 INFO]: [WorldGuard] (world_nether) Fire spread is UNRESTRICTED. [14:30:48 INFO]: [WorldGuard] Loaded configuration for world 'world_nether' [14:30:48 INFO]: [WorldGuard] (world_the_end) TNT ignition is PERMITTED. [14:30:48 INFO]: [WorldGuard] (world_the_end) Lighters are PERMITTED. [14:30:48 INFO]: [WorldGuard] (world_the_end) Lava fire is PERMITTED. [14:30:48 INFO]: [WorldGuard] (world_the_end) Fire spread is UNRESTRICTED. [14:30:48 INFO]: [WorldGuard] Loaded configuration for world 'world_the_end' [14:30:48 INFO]: [WorldGuard] Loading region data... [14:30:48 ERROR]: Error occurred while enabling WorldGuard v7.0.17+2370-e42d8bc (Is it up to date?) java.lang.UnsupportedOperationException at org.bukkit.craftbukkit.scheduler.CraftScheduler.handle(CraftScheduler.java:517) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at org.bukkit.craftbukkit.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:227) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at org.bukkit.craftbukkit.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:209) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at org.bukkit.craftbukkit.scheduler.CraftScheduler.scheduleSyncRepeatingTask(CraftScheduler.java:204) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at worldguard-bukkit-7.0.17.jar//com.sk89q.worldguard.bukkit.BukkitRegionContainer.initialize(BukkitRegionContainer.java:107) ~[?:?] at worldguard-bukkit-7.0.17.jar//com.sk89q.worldguard.bukkit.BukkitWorldGuardPlatform.load(BukkitWorldGuardPlatform.java:143) ~[?:?] at worldguard-bukkit-7.0.17.jar//com.sk89q.worldguard.WorldGuard.setup(WorldGuard.java:91) ~[?:?] at worldguard-bukkit-7.0.17.jar//com.sk89q.worldguard.bukkit.WorldGuardPlugin.onEnable(WorldGuardPlugin.java:158) ~[?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:279) ~[koboshfolia-api-26.2-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:201) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[koboshfolia-api-26.2-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:633) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:590) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at net.minecraft.server.MinecraftServer.initPostWorld(MinecraftServer.java:675) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:347) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1344) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:302) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at java.base/java.lang.Thread.run(Thread.java:1474) ~[?:?] [14:30:48 INFO]: [WorldGuard] Disabling WorldGuard v7.0.17+2370-e42d8bc [14:30:48 INFO]: [WorldGuard] Shutting down executor and cancelling any pending tasks... [14:30:48 ERROR]: Error occurred while disabling WorldGuard v7.0.17+2370-e42d8bc java.lang.UnsupportedOperationException at org.bukkit.craftbukkit.scheduler.CraftScheduler.handle(CraftScheduler.java:517) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at org.bukkit.craftbukkit.scheduler.CraftScheduler.cancelTasks(CraftScheduler.java:340) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at worldguard-bukkit-7.0.17.jar//com.sk89q.worldguard.bukkit.WorldGuardPlugin.onDisable(WorldGuardPlugin.java:299) ~[?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:285) ~[koboshfolia-api-26.2-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugin(PaperPluginInstanceManager.java:236) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.disablePlugin(PaperPluginManagerImpl.java:114) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:550) ~[koboshfolia-api-26.2-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:205) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[koboshfolia-api-26.2-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:633) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:590) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at net.minecraft.server.MinecraftServer.initPostWorld(MinecraftServer.java:675) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:347) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1344) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:302) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at java.base/java.lang.Thread.run(Thread.java:1474) ~[?:?]

[14:32:21 INFO]: [WorldEdit] Disabling WorldEdit v7.4.4+7546-f9e033f [14:32:21 INFO]: Unregistering com.sk89q.worldedit.bukkit.BukkitServerInterface from WorldEdit [14:32:21 ERROR]: Error occurred while disabling WorldEdit v7.4.4+7546-f9e033f java.lang.UnsupportedOperationException at org.bukkit.craftbukkit.scheduler.CraftScheduler.handle(CraftScheduler.java:517) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at org.bukkit.craftbukkit.scheduler.CraftScheduler.cancelTasks(CraftScheduler.java:340) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at worldedit-bukkit-7.4.4.jar//com.sk89q.worldedit.bukkit.WorldEditPlugin.onDisable(WorldEditPlugin.java:325) ~[?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:285) ~[koboshfolia-api-26.2-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugin(PaperPluginInstanceManager.java:236) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugins(PaperPluginInstanceManager.java:160) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.disablePlugins(PaperPluginManagerImpl.java:97) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:541) ~[koboshfolia-api-26.2-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:606) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:1092) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at net.minecraft.server.dedicated.DedicatedServer.stopServer(DedicatedServer.java:925) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a] at io.papermc.paper.threadedregions.RegionShutdownThread.run(RegionShutdownThread.java:163) ~[koboshfolia-26.2.jar:26.2-DEV-ba8413a]

koboshchan avatar Jul 05 '26 21:07 koboshchan

Thst is a WorldGuard error, not WorldEdit. I don't recall if WG even supports Folia.

octylFractal avatar Jul 05 '26 21:07 octylFractal

sorry.

koboshchan avatar Jul 05 '26 22:07 koboshchan

Just FYI @koboshchan, your error is due to running non-Folia code. You're almost definitely using a fork of Folia that hides the fact that the server is actually running Folia from plugins, so therefore the plugins don't run Folia-safe code.

me4502 avatar Jul 06 '26 00:07 me4502

Just FYI @koboshchan, your error is due to running non-Folia code. You're almost definitely using a fork of Folia that hides the fact that the server is actually running Folia from plugins, so therefore the plugins don't run Folia-safe code.

thank you so much for this info.

koboshchan avatar Jul 06 '26 01:07 koboshchan

https://github.com/koboshchan/WorldGuard-folia yay

koboshchan avatar Jul 07 '26 10:07 koboshchan

Forking WorldGuard to make it always run the Folia path, rather than fixing the fork of Folia, is not the right way to go about it. WorldGuard has functional Folia support, and is specifically done the way it is for safety. Forks of Folia should not be trying to bypass plugin's safety mechanisms

me4502 avatar Jul 07 '26 10:07 me4502