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

Still using some old getonlineplayers methods #19

Closed
Pilvinen opened this issue Mar 6, 2016 · 6 comments
Closed

Still using some old getonlineplayers methods #19

Pilvinen opened this issue Mar 6, 2016 · 6 comments
Assignees
Labels

Comments

@Pilvinen
Copy link

Pilvinen commented Mar 6, 2016

Found this on console in the EHM v3.7:

[15:50:47] [Craft Scheduler Thread - 15/WARN]: org.apache.commons.lang.UnhandledException: Plugin ExtraHardMode v3.7 generated an exception while executing task 55
        at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player;
        at com.extrahardmode.metrics.Metrics.postPlugin(Metrics.java:335)
        at com.extrahardmode.metrics.Metrics.access$400(Metrics.java:57)
        at com.extrahardmode.metrics.Metrics$1.run(Metrics.java:223)
        at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftTask.run(CraftTask.java:71)
        at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
        ... 3 more
@RoboMWM RoboMWM added the bug label Mar 6, 2016
@RoboMWM
Copy link
Member

RoboMWM commented Mar 6, 2016

Seems that plugins that get around this package metrics themselves instead of making it a dependency. I'll see what I can do.

@RoboMWM
Copy link
Member

RoboMWM commented Mar 6, 2016

Please try this version and let me know if it works or not: https://github.com/MLG-Fortress/ExtraHardMode/releases/tag/v3.7.1-beta

@RoboMWM
Copy link
Member

RoboMWM commented Mar 7, 2016

Did this work?

@RoboMWM RoboMWM self-assigned this Mar 7, 2016
@Pilvinen
Copy link
Author

Pilvinen commented Mar 7, 2016

I am unable to test this. My logs are filled with error and other spam at the moment making them really hard to read and that error didn't seem very regular.

@RoboMWM
Copy link
Member

RoboMWM commented Mar 7, 2016

I'll assume this is fixed - reply and re-open here if that isn't the case.

@RoboMWM RoboMWM closed this as completed in 0372ea1 Mar 7, 2016
@RoboMWM
Copy link
Member

RoboMWM commented Mar 9, 2016

Ah, this is why - was wondering why the code seemed correct on GitHub: https://www.spigotmc.org/threads/mcstats-doesnt-like-1-9.127507/#post-1354356

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

No branches or pull requests

2 participants