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

Using outdated addons cause errors in console #281

Closed
DevYorma opened this issue Sep 29, 2018 · 3 comments
Closed

Using outdated addons cause errors in console #281

DevYorma opened this issue Sep 29, 2018 · 3 comments
Assignees

Comments

@DevYorma
Copy link

I found a second error in the console but everything seems to work fine.
By the way: Users are able to grab items from the island language gui.

[16:03:29] [Server thread/ERROR]: Error occurred while enabling BentoBox v0.10.0-SNAPSHOT (Is it up to date?)
java.lang.NoClassDefFoundError: world/bentobox/bentobox/api/commands/admin/AdminSchemCommand
at bentobox.addon.bskyblock.commands.AdminCommand.setup(AdminCommand.java:53) ~[?:?]
at world.bentobox.bentobox.api.commands.CompositeCommand.(CompositeCommand.java:134) ~[?:?]
at bentobox.addon.bskyblock.commands.AdminCommand.(AdminCommand.java:29) ~[?:?]
at bentobox.addon.bskyblock.BSkyBlock.onEnable(BSkyBlock.java:38) ~[?:?]
at world.bentobox.bentobox.managers.AddonsManager.lambda$enableAddons$2(AddonsManager.java:79) ~[?:?]
at java.util.ArrayList.forEach(ArrayList.java:1257) ~[?:1.8.0_171]
at world.bentobox.bentobox.managers.AddonsManager.enableAddons(AddonsManager.java:78) ~[?:?]
at world.bentobox.bentobox.BentoBox.onEnable(BentoBox.java:109) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[spigot.jar:git-Spigot-f6a273b-1cf8b5d]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:339) [spigot.jar:git-Spigot-f6a273b-1cf8b5d]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:403) [spigot.jar:git-Spigot-f6a273b-1cf8b5d]
at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugin(CraftServer.java:431) [spigot.jar:git-Spigot-f6a273b-1cf8b5d]
at org.bukkit.craftbukkit.v1_13_R2.CraftServer.enablePlugins(CraftServer.java:345) [spigot.jar:git-Spigot-f6a273b-1cf8b5d]
at net.minecraft.server.v1_13_R2.MinecraftServer.l(MinecraftServer.java:584) [spigot.jar:git-Spigot-f6a273b-1cf8b5d]
at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:546) [spigot.jar:git-Spigot-f6a273b-1cf8b5d]
at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:424) [spigot.jar:git-Spigot-f6a273b-1cf8b5d]
at net.minecraft.server.v1_13_R2.DedicatedServer.init(DedicatedServer.java:294) [spigot.jar:git-Spigot-f6a273b-1cf8b5d]
at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:702) [spigot.jar:git-Spigot-f6a273b-1cf8b5d]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_171]

@Poslovitch Poslovitch changed the title Error in console Using outdated addons cause errors in console Sep 29, 2018
@Poslovitch
Copy link
Member

Again, your addons are probably outdated.

I'll keep this ticket open as a reminder for me to add a "protection" against using outdated addons

@DevYorma
Copy link
Author

Ok... but these are the newest versions I have found on github.

Poslovitch added a commit that referenced this issue Oct 28, 2018
Fixes #281
Replaced Addon#setEnabled(boolean) with Addon#setState(Addon.State).

Now, if an exception gets thrown while enabling an addon, it'll automatically stop enabling it and set its state to "INCOMPATIBLE" or "ERROR". These values could later be get to be displayed in the version command.
@Poslovitch
Copy link
Member

Tested and had to fix it in 12d1909.

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

2 participants