From 356d700c78156d40d4b440a19ac80f8fae1c7058 Mon Sep 17 00:00:00 2001 From: Esophose Date: Fri, 27 Nov 2020 18:38:56 -0700 Subject: [PATCH] Don't run /ppo async to avoid race conditions --- .../dev/esophose/playerparticles/manager/CommandManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/esophose/playerparticles/manager/CommandManager.java b/src/main/java/dev/esophose/playerparticles/manager/CommandManager.java index 1d76e1c..9dd3dc3 100644 --- a/src/main/java/dev/esophose/playerparticles/manager/CommandManager.java +++ b/src/main/java/dev/esophose/playerparticles/manager/CommandManager.java @@ -176,7 +176,7 @@ public class CommandManager extends Manager implements CommandExecutor, TabCompl return true; } else if (cmd.getName().equalsIgnoreCase("ppo")) { - Bukkit.getScheduler().runTaskAsynchronously(this.playerParticles, () -> this.ppoCommand.onCommandExecute(sender, args)); + Bukkit.getScheduler().runTask(this.playerParticles, () -> this.ppoCommand.onCommandExecute(sender, args)); } return true;