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

NoSuchMethodError in Spigot 1.13.2 #7

Open
wesleyegbertsen opened this issue Nov 24, 2018 · 2 comments
Open

NoSuchMethodError in Spigot 1.13.2 #7

wesleyegbertsen opened this issue Nov 24, 2018 · 2 comments

Comments

@wesleyegbertsen
Copy link

I am getting the following errors in my console running Spigot 1.13.2:

[21:28:21 WARN]: [MapTools] Task #2 for MapTools v0.1 generated an exception
java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player;
        at me.m0r13.maptools.MarkerUpdateTask.run(Unknown Source) ~[?:?]
        at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftTask.run(CraftTask.java:81) ~[spigot-1.13.2.jar:git-Spigot-a1f2566-97b0057]
        at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:391) [spigot-1.13.2.jar:git-Spigot-a1f2566-97b0057]
        at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:893) [spigot-1.13.2.jar:git-Spigot-a1f2566-97b0057]
        at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417) [spigot-1.13.2.jar:git-Spigot-a1f2566-97b0057]
        at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:835) [spigot-1.13.2.jar:git-Spigot-a1f2566-97b0057]
        at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:733) [spigot-1.13.2.jar:git-Spigot-a1f2566-97b0057]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]

@wesleyegbertsen
Copy link
Author

I seemed to have fix it by updating the api version in the pom.xml. Now there is still a exception on stopping the server:

[21:57:24 ERROR]: Error occurred while disabling MapTools v0.1 (Is it up to date?)
org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register task while disabled

Seems to happen in the disablePlugin call, will check if I can fix this.

@wesleyegbertsen
Copy link
Author

Fixed the plugin, it now support 1.13.2. Also the exception that would occur when stopping the server is gone. See pull request: #8

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