mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-25 12:25:20 +01:00
Support Folia
This commit is contained in:
parent
642ad03b22
commit
76fafacc98
@ -128,7 +128,7 @@ public class CrazyAuctions extends JavaPlugin {
|
||||
TimerTask task = new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
getServer().getScheduler().runTask(get(), Methods::updateAuction);
|
||||
getServer().getGlobalRegionScheduler().run(get(), t -> Methods.updateAuction());
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -967,7 +967,7 @@ public class GuiListener implements Listener {
|
||||
|
||||
inv.setItem(slot, itemBuilder.build());
|
||||
playClick(player);
|
||||
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, runnable, 3 * 20);
|
||||
player.getScheduler().runDelayed(plugin, task -> runnable.run(), null, 3 * 20);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -985,7 +985,7 @@ public class GuiListener implements Listener {
|
||||
|
||||
inv.setItem(slot, itemBuilder.build());
|
||||
playClick(player);
|
||||
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, runnable, 3 * 20);
|
||||
player.getScheduler().runDelayed(plugin, task -> runnable.run(), null, 3 * 20);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1002,7 +1002,7 @@ public class GuiListener implements Listener {
|
||||
|
||||
inv.setItem(slot, itemBuilder.build());
|
||||
playClick(player);
|
||||
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, runnable, 3 * 20);
|
||||
player.getScheduler().runDelayed(plugin, task -> runnable.run(), null, 3 * 20);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -7,6 +7,7 @@ version: '${version}'
|
||||
api-version: '${apiVersion}'
|
||||
description: '${description}'
|
||||
website: '${website}'
|
||||
folia-supported: true
|
||||
|
||||
softdepend: [Vault]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user