From 129ef7b6bf47789d052f0b11c9a51d7e180a300d Mon Sep 17 00:00:00 2001 From: Taah Date: Fri, 3 May 2024 14:41:12 -0700 Subject: [PATCH] Remind me to read the documentation next time... coreprotect is supposed to be called asynchronously lol --- server/src/main/java/dev/plex/command/impl/BanCMD.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/dev/plex/command/impl/BanCMD.java b/server/src/main/java/dev/plex/command/impl/BanCMD.java index 05d59c0..f1093be 100644 --- a/server/src/main/java/dev/plex/command/impl/BanCMD.java +++ b/server/src/main/java/dev/plex/command/impl/BanCMD.java @@ -122,7 +122,7 @@ public class BanCMD extends PlexCommand else if (plugin.getCoreProtectHook() != null && plugin.getCoreProtectHook().hasCoreProtect()) { PlexLog.debug("Testing coreprotect"); - Bukkit.getGlobalRegionScheduler().run(plugin, scheduledTask -> + Bukkit.getAsyncScheduler().runNow(plugin, scheduledTask -> { plugin.getCoreProtectHook().coreProtectAPI().performRollback(86400, Collections.singletonList(plexPlayer.getName()), null, null, null, null, 0, null); });