-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
Folia support #3615
base: master
Are you sure you want to change the base?
Folia support #3615
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Needs rebase, but this seems to work for me on 1.19 Folia |
This comment was marked as outdated.
This comment was marked as outdated.
server.getAsyncScheduler().runAtFixedRate(plugin, task -> {
Collection<? extends Player> players = PluginMessageMessenger.this.plugin.getBootstrap().getServer().getOnlinePlayers();
Player p = Iterables.getFirst(players, null);
if (p == null) {
return;
}
p.sendPluginMessage(PluginMessageMessenger.this.plugin.getLoader(), CHANNEL, buf);
task.cancel();
}, 20L, 2000L, TimeUnit.MILLISECONDS); |
|
||
private static boolean isFolia() { | ||
try { | ||
Class.forName("io.papermc.paper.threadedregions.scheduler.RegionScheduler"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Class.forName("io.papermc.paper.threadedregions.scheduler.RegionScheduler"); | |
Class.forName("io.papermc.paper.threadedregions.RegionizedServer"); |
paper api now includes the folia scheduler stuff
merge plz ! |
foliabros.. |
. |
don't post useless comments on prs |
Anything new about this? |
is there a download for 1.20.2? |
@lucko how are things going here? |
I have rebased this PR and updated to Folia 1.20.2 - builds are available from Jenkins: https://ci.lucko.me/job/LuckPerms-Folia/ |
What's the progress and when will it be merged? |
pls merge |
Adds support for Paper's regionised/multithreading Folia project.
As you can see, there were fairly minimal changes required to get LuckPerms working, so I don't expect many bugs/issues. It has been lightly tested by me. :)
Test build
There is a jar you can download from Jenkins: https://ci.lucko.me/job/LuckPerms-Folia/