Queue fix + folia enabling support

This commit is contained in:
RonanCraft 2023-04-19 09:37:26 -04:00
parent 033eaeecdc
commit b933e7bd77
4 changed files with 8 additions and 9 deletions

View File

@ -7,7 +7,7 @@
<groupId>me.SuperRonanCraft</groupId>
<artifactId>BetterRTP</artifactId>
<packaging>jar</packaging>
<version>3.6.7</version>
<version>3.6.8</version>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>

View File

@ -144,9 +144,9 @@ public class BetterRTP extends JavaPlugin {
//(Re)Load all plugin systems/files/cache
private void loadAll() {
playerDataManager.clear();
databaseHandler.load();
files.loadAll();
settings.load();
databaseHandler.load();
rtpLogger.setup(this);
invs.load();
cooldowns.load();

View File

@ -71,13 +71,11 @@ class RTPDelay implements Listener {
Bukkit.getServer().getPluginManager().callEvent(new RTP_CancelledEvent(rtp.getPlayer()));
}
private BukkitRunnable run(final CommandSender sendi, final RTPDelay cls) {
return new BukkitRunnable() {
@Override public void run() {
private Runnable run(final CommandSender sendi, final RTPDelay cls) {
return () -> {
HandlerList.unregisterAll(cls);
if (getPl().getpInfo().getRtping().containsKey(rtp.getPlayer()))
rtp.randomlyTeleport(sendi);
}
};
}

View File

@ -2,6 +2,7 @@ main: me.SuperRonanCraft.BetterRTP.BetterRTP
version: ${project.version}
name: BetterRTP
author: SuperRonanCraft
folia-supported: true #As of 3.6.8 thanks to LOOHP#6007, TechnicallyCoded#9095 and loving11ish#2066
softdepend:
- Vault
- WorldGuard #Respect WorldGuard areas (https://dev.bukkit.org/projects/worldguard)