Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Not working with latest bungeecord #75

Closed
RedSparr0w opened this issue Jun 17, 2021 · 4 comments
Closed

Not working with latest bungeecord #75

RedSparr0w opened this issue Jun 17, 2021 · 4 comments

Comments

@RedSparr0w
Copy link

BungeeCord version: git:BungeeCord-Bootstrap:1.17-R0.1-SNAPSHOT:ad50fc9:1585
Protocolize version: protocolize-plugin version 1.7.0-SNAPSHOT:605
BungeeGUI version: 1.2.5

When running on latest BungeeCord, Plugin fails to start, I am getting the following error:

SEVERE
Task BungeeTask(sched=net.md_5.bungee.scheduler.BungeeScheduler@30865a90, id=0, owner=com.danifoldi.bungeegui.main.BungeeGuiPlugin@30272916, task=com.danifoldi.bungeegui.main.PlaceholderHandler$$Lambda$174/0x0000000840255440@6134ac4a, delay=1000, period=5000, running=true) encountered an exception
Console
java.lang.NoSuchMethodError: 'java.util.Map net.md_5.bungee.api.ProxyServer.getServersCopy()'
at com.danifoldi.bungeegui.main.PlaceholderHandler.lambda$registerBuiltins$2(PlaceholderHandler.java:110)
at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:63)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
@DaniFoldi
Copy link
Owner

Hi!

Thanks for the bug report. I was using Waterfall to test the plugin, and getServersCopy is a method they added to the api. Please test with 1.2.6 which I will release later today. Let me know if there's anything else that I missed.

DaniFoldi added a commit that referenced this issue Jun 17, 2021
@RedSparr0w
Copy link
Author

RedSparr0w commented Jun 18, 2021

Thanks for the quick response/update!

I downloaded the 1.2.6 version and I am getting the following errors:

NOTE: Not sure why it says loading 1.2.4, as it was definitely the 1.2.6 version that I downloaded.

[BungeeGUI] -------------------------------------------
[BungeeGUI]
[BungeeGUI] Loading BungeeGUI version 1.2.4
[BungeeGUI]
[BungeeGUI] -------------------------------------------
WARNING
Exception encountered when loading plugin: BungeeGUI
Console
java.lang.NoSuchMethodError: 'java.util.Map net.md_5.bungee.api.ProxyServer.getServersCopy()'
at com.danifoldi.bungeegui.main.PlaceholderHandler.registerBuiltins(PlaceholderHandler.java:321)
at com.danifoldi.bungeegui.main.BungeeGuiLoader.load(BungeeGuiLoader.java:66)
at com.danifoldi.bungeegui.main.BungeeGuiPlugin.onEnable(BungeeGuiPlugin.java:24)
at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:265)
at net.md_5.bungee.BungeeCord.start(BungeeCord.java:287)
at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:67)
at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
SEVERE
Task BungeeTask(sched=net.md_5.bungee.scheduler.BungeeScheduler@2c1dc8e, id=0, owner=com.danifoldi.bungeegui.main.BungeeGuiPlugin@450794b4, task=com.danifoldi.bungeegui.main.PlaceholderHandler$$Lambda$174/0x0000000840255440@b273a59, delay=1000, period=5000, running=true) encountered an exception
Console
java.lang.NoSuchMethodError: 'java.util.Map net.md_5.bungee.api.ProxyServer.getServersCopy()'
at com.danifoldi.bungeegui.main.PlaceholderHandler.lambda$registerBuiltins$2(PlaceholderHandler.java:110)
at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:63)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)

Seems that there's 2 other places that need updating:
image

@DaniFoldi
Copy link
Owner

Hey,

I shouldn't have left releasing until the evening, or at least until today morning. Regardless, here is a pre-release for you to try, this time I'm mildly confident that it's the correct jar, with all instances fixed. link to wetranswer download because github doesnt let you upload .jars to issues, will expire in a week

Note, it will complain about not being the latest version, ignore that.

Let me know if I still missed something and should start using IntelliJ's find in files feature.

@RedSparr0w
Copy link
Author

Perfect!
Thank you for the help 👍

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

No branches or pull requests

2 participants