Not all platforms have been registered yet! Please wait until WorldEdit is initialized.
IssueDescription opened this issue · 15 comments
WorldEdit Version
worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar still happens on latest bukkit.org dl tho
Platform Version
Paper-1.20.6-86 (latest)
Confirmations
- I am using the most recent Minecraft release.
- I am using a version of WorldEdit compatible with my Minecraft version.
- I am using the latest or recommended version of my platform software.
- I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
- I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)
Bug Description
Upon server boot:
Dist:
com.sk89q.worldedit.extension.platform.NoCapablePlatformException: Not all platforms have been registered yet! Please wait until WorldEdit is initialized.
at worldedit-bukkit-7.3.1-SNAPSHOT-dist.jar/com.sk89q.worldedit.extension.platform.PlatformManager.queryCapability(PlatformManager.java:170) ~[worldedit-bukkit-7.3.1-SNAPSHOT-dist.jar:?]
at worldedit-bukkit-7.3.1-SNAPSHOT-dist.jar/com.sk89q.worldedit.extension.platform.PlatformManager.getConfiguration(PlatformManager.java:296) ~[worldedit-bukkit-7.3.1-SNAPSHOT-dist.jar:?]
at worldedit-bukkit-7.3.1-SNAPSHOT-dist.jar/com.sk89q.worldedit.WorldEdit.getConfiguration(WorldEdit.java:793) ~[worldedit-bukkit-7.3.1-SNAPSHOT-dist.jar:?]
at worldedit-bukkit-7.3.1-SNAPSHOT-dist.jar/com.sk89q.worldedit.bukkit.BukkitCommandInspector.getShortText(BukkitCommandInspector.java:56) ~[worldedit-bukkit-7.3.1-SNAPSHOT-dist.jar:?]
at worldedit-bukkit-7.3.1-SNAPSHOT-dist.jar/com.sk89q.bukkit.util.DynamicPluginCommandHelpTopic.<init>(DynamicPluginCommandHelpTopic.java:44) ~[worldedit-bukkit-7.3.1-SNAPSHOT-dist.jar:?]
at worldedit-bukkit-7.3.1-SNAPSHOT-dist.jar/com.sk89q.bukkit.util.DynamicPluginCommandHelpTopic$Factory.createTopic(DynamicPluginCommandHelpTopic.java:144) ~[worldedit-bukkit-7.3.1-SNAPSHOT-dist.jar:?]
at worldedit-bukkit-7.3.1-SNAPSHOT-dist.jar/com.sk89q.bukkit.util.DynamicPluginCommandHelpTopic$Factory.createTopic(DynamicPluginCommandHelpTopic.java:141) ~[worldedit-bukkit-7.3.1-SNAPSHOT-dist.jar:?]
at org.bukkit.craftbukkit.help.SimpleHelpMap.initializeCommands(SimpleHelpMap.java:136) ~[paper-1.20.6.jar:1.20.6-DEV-5a9afbe]
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:567) ~[paper-1.20.6.jar:1.20.6-DEV-5a9afbe]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:678) ~[paper-1.20.6.jar:1.20.6-DEV-5a9afbe]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:437) ~[paper-1.20.6.jar:1.20.6-DEV-5a9afbe]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:323) ~[paper-1.20.6.jar:1.20.6-DEV-5a9afbe]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1139) ~[paper-1.20.6.jar:1.20.6-DEV-5a9afbe]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[paper-1.20.6.jar:1.20.6-DEV-5a9afbe]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Snapshot:
[12:45:00 ERROR]: Encountered an unexpected exception
com.sk89q.worldedit.extension.platform.NoCapablePlatformException: Not all platforms have been registered yet! Please wait until WorldEdit is initialized.
at worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar/com.sk89q.worldedit.extension.platform.PlatformManager.queryCapability(PlatformManager.java:170) ~[worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar:?]
at worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar/com.sk89q.worldedit.extension.platform.PlatformManager.getConfiguration(PlatformManager.java:296) ~[worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar:?]
at worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar/com.sk89q.worldedit.WorldEdit.getConfiguration(WorldEdit.java:793) ~[worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar:?]
at worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar/com.sk89q.worldedit.bukkit.BukkitCommandInspector.getShortText(BukkitCommandInspector.java:56) ~[worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar:?]
at worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar/com.sk89q.bukkit.util.DynamicPluginCommandHelpTopic.<init>(DynamicPluginCommandHelpTopic.java:44) ~[worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar:?]
at worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar/com.sk89q.bukkit.util.DynamicPluginCommandHelpTopic$Factory.createTopic(DynamicPluginCommandHelpTopic.java:144) ~[worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar:?]
at worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar/com.sk89q.bukkit.util.DynamicPluginCommandHelpTopic$Factory.createTopic(DynamicPluginCommandHelpTopic.java:141) ~[worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar:?]
at org.bukkit.craftbukkit.help.SimpleHelpMap.initializeCommands(SimpleHelpMap.java:136) ~[paper-1.20.6.jar:1.20.6-DEV-9bf4855]
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:567) ~[paper-1.20.6.jar:1.20.6-DEV-9bf4855]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:678) ~[paper-1.20.6.jar:1.20.6-DEV-9bf4855]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:437) ~[paper-1.20.6.jar:1.20.6-DEV-9bf4855]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:323) ~[paper-1.20.6.jar:1.20.6-DEV-9bf4855]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1139) ~[paper-1.20.6.jar:1.20.6-DEV-9bf4855]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[paper-1.20.6.jar:1.20.6-DEV-9bf4855]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
[12:45:00 ERROR]: This crash report has been saved to: /home/container/./crash-reports/crash-2024-05-21_12.45.00-server.txt
Expected Behavior
Should work.
Reproduction Steps
Try to load any version of worldedit on latest paper
Anything Else?
No response
You need to provide your full logs, there's nothing that can be said based on what you've provided
also the versions in the snippets of logs don't match what you've stated in the ticket
My bad, here is full log:
[12:44:45 INFO]: WEPIF: Using the Bukkit Permissions API.
[12:44:45 WARN]:
**********************************************
** This WorldEdit version does not fully support your version of Bukkit.
**
** When working with blocks or undoing, chests will be empty, signs
** will be blank, and so on. There will be no support for entity
** and block property-related functions.
**
** Please see https://worldedit.enginehub.org/en/latest/faq/#bukkit-adapters
**********************************************
[12:44:45 WARN]: [org.bukkit.craftbukkit.legacy.CraftLegacy] Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug!
[12:44:52 ERROR]: Error occurred while enabling WorldEdit v7.3.3-SNAPSHOT+6780-17029fe (Is it up to date?)
java.lang.IllegalArgumentException: Cannot get key of Legacy Material
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:143) ~[guava-32.1.2-jre.jar:?]
at org.bukkit.Material.getKey(Material.java:4896) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar/com.sk89q.worldedit.bukkit.WorldEditPlugin.initializeRegistries(WorldEditPlugin.java:220) ~[worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar:?]
at worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar/com.sk89q.worldedit.bukkit.WorldEditPlugin.setupPreWorldData(WorldEditPlugin.java:195) ~[worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar:?]
at worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar/com.sk89q.worldedit.bukkit.WorldEditPlugin.onEnable(WorldEditPlugin.java:175) ~[worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:287) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.20.6.jar:1.20.6-DEV-9bf4855]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.20.6.jar:1.20.6-DEV-9bf4855]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:519) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:604) ~[paper-1.20.6.jar:1.20.6-DEV-9bf4855]
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:553) ~[paper-1.20.6.jar:1.20.6-DEV-9bf4855]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:287) ~[paper-1.20.6.jar:1.20.6-DEV-9bf4855]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1139) ~[paper-1.20.6.jar:1.20.6-DEV-9bf4855]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[paper-1.20.6.jar:1.20.6-DEV-9bf4855]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
That looks like you're running an unobfuscated Paper jar, which won't work. you need to run an actual release copy of Paper, not a development one
That looks like you're running an unobfuscated Paper jar, which won't work. you need to run an actual release copy of Paper, not a development one
Release paper is unobfuscated now, since 1.20.5
Not in the way that dev jars are. either way there’s something very off about your server, and without your full logs we can’t say much further. I can’t reproduce this issue given i ran the latest release on latest Paper just hours ago fine, so the issue would be in your server setup somewhere
[13:28:37 WARN]:
**********************************************
** This WorldEdit version does not fully support your version of Bukkit.
**
** When working with blocks or undoing, chests will be empty, signs
** will be blank, and so on. There will be no support for entity
** and block property-related functions.
**
** Please see https://worldedit.enginehub.org/en/latest/faq/#bukkit-adapters
**********************************************
[13:28:37 WARN]: [org.bukkit.craftbukkit.legacy.CraftLegacy] Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug!
[13:28:44 ERROR]: Error occurred while enabling WorldEdit v7.3.3-SNAPSHOT+6780-17029fe (Is it up to date?)
java.lang.IllegalArgumentException: Cannot get key of Legacy Material
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:143) ~[guava-32.1.2-jre.jar:?]
at org.bukkit.Material.getKey(Material.java:4896) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar/com.sk89q.worldedit.bukkit.WorldEditPlugin.initializeRegistries(WorldEditPlugin.java:220) ~[worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar:?]
at worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar/com.sk89q.worldedit.bukkit.WorldEditPlugin.setupPreWorldData(WorldEditPlugin.java:195) ~[worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar:?]
at worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar/com.sk89q.worldedit.bukkit.WorldEditPlugin.onEnable(WorldEditPlugin.java:175) ~[worldedit-bukkit-7.3.3-SNAPSHOT-dist (1).jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:287) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.20.6.jar:1.20.6-86-9bf4855]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.20.6.jar:1.20.6-86-9bf4855]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:519) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:604) ~[paper-1.20.6.jar:1.20.6-86-9bf4855]
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:553) ~[paper-1.20.6.jar:1.20.6-86-9bf4855]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:287) ~[paper-1.20.6.jar:1.20.6-86-9bf4855]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1139) ~[paper-1.20.6.jar:1.20.6-86-9bf4855]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[paper-1.20.6.jar:1.20.6-86-9bf4855]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Latest vanilla paper straight from site, does worldedit only use legacy spigot obfuscated nms or something? why not add support for unobfuscated.
that's still not your full log.
The issue is with paper plugin rewriting, but its only a temporary stop gap to allow legacy spigot plugins to work, supporting 1.20.5 should come with supporting non obfuscated nms reflection
That’s irrelevant and incorrect. If you want help, provide your logs. Otherwise this ticket will be locked
That’s irrelevant and incorrect. If you want help, provide your logs. Otherwise this ticket will be locked
Why not remove NMS entirely from worldedit? it doesnt need it. Only reason I can think is faster block setting, but worldedit block setting is basically as slow as .setBlockData(), FAWE is what is needed pasting big stuff
There are a few oddities in the various logs you’ve posted. this very much feels like you’re not telling us something very important.
My assumption is you’re running this via an IDE, which doesn’t have many of the necessary rewrites enabled for plugins to function. The main one that’s very evident by your logs, is the one that hides legacy materials when iterating over the available materials.
There are a few oddities in the various logs you’ve posted. this very much feels like you’re not telling us something very important.
My assumption is you’re running this via an IDE, which doesn’t have many of the necessary rewrites enabled for plugins to function. The main one that’s very evident by your logs, is the one that hides legacy materials when iterating over the available materials.
I already said, I have -Dpaper.disable-plugin-rewriting=true flag, but you shouldn't be relying on the plugin rewriting thing since its only a temporary stop gap.