Skip to content

feat: add nexo support#161

Closed
Saymoan wants to merge 1 commit into
HelpChat:mainfrom
Aurora-Towny-Archive:main
Closed

feat: add nexo support#161
Saymoan wants to merge 1 commit into
HelpChat:mainfrom
Aurora-Towny-Archive:main

Conversation

@Saymoan
Copy link
Copy Markdown

@Saymoan Saymoan commented Dec 8, 2024

I have created this pull request that adds Nexo support to DeluxeMenus (#155). I have tested this on my development server and have not encountered any issues. The implementation is nearly identical to the existing Oraxen hook.
Some things to note:

  • The Nexo API requires Java 21, so I have had to update the target and source compatibility to that.
  • The existing shadow plugin is not compatible with Java 21, so I have updated it to the shadow plugin that is being maintained by Gradle.

Copy link
Copy Markdown
Member

@iGabyTM iGabyTM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't just bump the java version by 10 releases to add support for a plugin. This needs to be announced first.

@Saymoan
Copy link
Copy Markdown
Author

Saymoan commented Dec 9, 2024

We can't just bump the java version by 10 releases to add support for a plugin. This needs to be announced first.

Yes, this PR is more to let HelpChat know that if they want to support Nexo, they'll have to update to Java 21, as well as add the hook itself so that if anyone wants to compile it themselves, they can. Other plugins that have added Nexo support have marked their Oraxen support as Deprecated, such as CrazyCrates and HMCCosmetics.

@FaultyFunctions
Copy link
Copy Markdown

Any news on this?

@Saymoan
Copy link
Copy Markdown
Author

Saymoan commented Dec 19, 2024

I've been told a version of the Nexo API that doesn't require Java 21 is potentially being worked on. Will update this if that ever comes out.

@NoltoxGit
Copy link
Copy Markdown

Hi!
I've just looked, and there are more than 60% of servers using DeluxeMenus running Java 21 (or higher like 22, 23...).

So yeah, I can understand this change requires an announcement, but it only affects a minority of servers, especially since the servers using a version lower than Java 21, they are also using an old version of DeluxeMenus ^-^

https://bstats.org/plugin/bukkit/DeluxeMenus/445#javaVersion

image

@qckcat
Copy link
Copy Markdown

qckcat commented Jan 17, 2025

Also looking for Nexo support in DeluxeMenus - Don't most modern server wrappers prefer Java 21 at this point?

@LichtHund
Copy link
Copy Markdown
Member

LichtHund commented Feb 4, 2025

The change of the version would "only" affect a minority, but that is still a whopping 40% of users. In this case you can use disableAutoTargetJvm() to allow importing of Nexo API while still keeping the target at JVM 11, since it is only required by a single class anyways.

@BlitzOffline
Copy link
Copy Markdown
Member

Closing this in favor of #181

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

Successfully merging this pull request may close these issues.

7 participants