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

[CORE] Introduce Support for Folia #221

Merged
merged 5 commits into from
Apr 12, 2023
Merged

[CORE] Introduce Support for Folia #221

merged 5 commits into from
Apr 12, 2023

Conversation

sofianedjerbi
Copy link

@sofianedjerbi sofianedjerbi commented Apr 11, 2023

Description:

Add Folia support.

[CORE] Changes

Changes to the core of the plugin - Performance Fixes, Bug Fixes, New Features, New Permission Nodes, New Config Options etc.
This is what I added on my own server and was afraid to PR due to dropping glowing effect support / update checker
ONLY when running Folia:

  • The update checker is disabled (It uses the wrong Scheduler)
  • Scoreboard glowing effects are disabled (Folia does not support scoreboard/teams)
  • TeleportAsync might seem unnatural. Waiting for Folia API to fix this.

  • I have tested this pull request for defects my own server.

By making this pull request, I represent that I have the right to waive copyright and related rights to my contribution, and agree that all copyright and related rights in my contributions are waived, and I acknowledge that the ArmorStandEditor Project Owners have the copyright to use and modify my contribution under the ArmorStandEditor License for perpetuity.

@sofianedjerbi
Copy link
Author

Might be a starting point for #220

@sofianedjerbi
Copy link
Author

Roadmap idea:

  • Replace scoreboards with hashmap when using Folia
  • Use the new scheduler class in the update checker

@Wolfieheart
Copy link
Owner

UpdateChecker raised as mfnalex/Spigot-UpdateChecker#28

@@ -221,7 +221,7 @@ private void commandUpdate(Player player) {
player.sendMessage(ChatColor.YELLOW + "[ArmorStandEditor] Update Checker will not work on Development Versions.");
player.sendMessage(ChatColor.YELLOW + "[ArmorStandEditor] Report all bugs to: https://github.com/Wolfieheart/ArmorStandEditor/issues");
} else {
if (plugin.getRunTheUpdateChecker()) {
if (!Scheduler.isFolia() && plugin.getRunTheUpdateChecker()) {
Copy link
Owner

@Wolfieheart Wolfieheart Apr 12, 2023

Choose a reason for hiding this comment

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

Should we foresee a case that:

if(Sheduler.isFolia()){
            player.sendMessage(ChatColor.YELLOW + "[ArmorStandEditor] Update Checker does not currently work on Folia .");
            player.sendMessage(ChatColor.YELLOW + "[ArmorStandEditor] Report all bugs to: https://github.com/Wolfieheart/ArmorStandEditor/issues");
}

?

@@ -2,6 +2,7 @@ name: ArmorStandEditor
main: io.github.rypofalem.armorstandeditor.ArmorStandEditorPlugin
version: 1.19.4-41
Copy link
Owner

Choose a reason for hiding this comment

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

Version Bump here and in Pom.xml to 1.19.4-42

Copy link
Owner

@Wolfieheart Wolfieheart left a comment

Choose a reason for hiding this comment

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

SOme comments to be done, but all in all very nice. Also

Something we should add into Readme.md is a badge that had Discord in it: https://discord.gg/3BbJKWpTCj

@Wolfieheart Wolfieheart changed the title Folia support [CORE] Introduce Support for Folia Apr 12, 2023
@Wolfieheart Wolfieheart merged commit 9193d01 into Wolfieheart:master Apr 12, 2023
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.

2 participants