Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disabled-worlds.invert doesn't work on 1.16.5 #94

Open
adiantek opened this issue Jul 10, 2023 · 0 comments
Open

disabled-worlds.invert doesn't work on 1.16.5 #94

adiantek opened this issue Jul 10, 2023 · 0 comments

Comments

@adiantek
Copy link

adiantek commented Jul 10, 2023

setting disabled-worlds.invert on 1.16.5 to true makes plugin impossible to start:

[01:02:55.028] [Server thread/ERROR]: Error occurred while enabling DeluxeHub v3.5.4 (Is it up to date?)
java.lang.NoClassDefFoundError: org/bukkit/generator/WorldInfo
        at fun.lewisdev.deluxehub.module.ModuleManager.loadModules(ModuleManager.java:44) ~[?:?]
        at fun.lewisdev.deluxehub.DeluxeHubPlugin.onEnable(DeluxeHubPlugin.java:95) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[paper-1.16.5.jar:git-Paper-"fa1a7c180"]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[paper-1.16.5.jar:git-Paper-"fa1a7c180"]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[paper-1.16.5.jar:git-Paper-"fa1a7c180"]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:518) ~[paper-1.16.5.jar:git-Paper-"fa1a7c180"]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:432) ~[paper-1.16.5.jar:git-Paper-"fa1a7c180"]
        at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:599) ~[paper-1.16.5.jar:git-Paper-"fa1a7c180"]
        at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:298) ~[paper-1.16.5.jar:git-Paper-"fa1a7c180"]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1074) ~[paper-1.16.5.jar:git-Paper-"fa1a7c180"]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[paper-1.16.5.jar:git-Paper-"fa1a7c180"]
        at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.ClassNotFoundException: org.bukkit.generator.WorldInfo
        at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:155) ~[paper-1.16.5.jar:git-Paper-"fa1a7c180"]
        at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:114) ~[paper-1.16.5.jar:git-Paper-"fa1a7c180"]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
        ... 12 more

You're calling World.getName(), which doesn't work, bcuz on 1.20.1 it's in WorldInfo:
https://github.com/ItsLewizzz/DeluxeHub/blob/master/src/main/java/fun/lewisdev/deluxehub/module/ModuleManager.java#L44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant