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); });