diff --git a/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/commands/AEFCommand.java b/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/commands/AEFCommand.java index 66b2a121e..b80a61523 100644 --- a/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/commands/AEFCommand.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/moomoo/anarchyexploitfixes/commands/AEFCommand.java @@ -67,7 +67,7 @@ public void reloadCommand( final CommandSender sender ) { sender.sendMessage(Component.text("Reloading AnarchyExploitFixes...").color(NamedTextColor.WHITE)); - plugin.getServer().getAsyncScheduler().runNow(plugin, reloadPlugin -> { + plugin.getServer().getGlobalRegionScheduler().run(plugin, reloadPlugin -> { plugin.reloadPlugin(); sender.sendMessage(Component.text("Reload complete.").color(NamedTextColor.GREEN)); }); diff --git a/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/commands/AEFCommand.java b/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/commands/AEFCommand.java index 109c580a9..67a7ed6d0 100644 --- a/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/commands/AEFCommand.java +++ b/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/commands/AEFCommand.java @@ -65,7 +65,7 @@ public void reloadCommand( final CommandSender sender ) { sender.sendMessage(ChatColor.WHITE + "Reloading AnarchyExploitFixes..."); - plugin.getServer().getScheduler().runTaskAsynchronously(plugin, () -> { + plugin.getServer().getScheduler().runTask(plugin, () -> { plugin.reloadPlugin(); sender.sendMessage(ChatColor.GREEN + "Reload complete."); });