Added support for Folia
This commit is contained in:
parent
29345e2fb1
commit
7170e29452
20 changed files with 1095 additions and 942 deletions
|
|
@ -20,6 +20,7 @@ import org.bukkit.World;
|
|||
|
||||
import net.coreprotect.CoreProtect;
|
||||
import net.coreprotect.language.Language;
|
||||
import net.coreprotect.thread.Scheduler;
|
||||
|
||||
public class Config extends Language {
|
||||
|
||||
|
|
@ -383,7 +384,7 @@ public class Config extends Language {
|
|||
// for now this solution is good enough to ensure we only modify on the main thread
|
||||
final CompletableFuture<Void> complete = new CompletableFuture<>();
|
||||
|
||||
Bukkit.getScheduler().runTask(CoreProtect.getInstance(), () -> {
|
||||
Scheduler.runTask(CoreProtect.getInstance(), () -> {
|
||||
try {
|
||||
parseConfig(data);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ public class ConfigHandler extends Queue {
|
|||
public static HikariDataSource hikariDataSource = null;
|
||||
public static final boolean isSpigot = Util.isSpigot();
|
||||
public static final boolean isPaper = Util.isPaper();
|
||||
public static final boolean isFolia = Util.isFolia();
|
||||
public static volatile boolean serverRunning = false;
|
||||
public static volatile boolean converterRunning = false;
|
||||
public static volatile boolean purgeRunning = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue