Ensure nuke commands runs on correct threads

This commit is contained in:
Josh Roy 2023-03-28 21:23:27 -04:00
parent 0e4bab24cb
commit 07fbf93001
No known key found for this signature in database
GPG Key ID: 86A69D08540BC29A

View File

@ -38,6 +38,7 @@ public class Commandnuke extends EssentialsCommand {
if (player == null) {
continue;
}
ess.scheduleEntityDelayedTask(player, () -> {
player.sendMessage(tl("nuke"));
final Location loc = player.getLocation();
final World world = loc.getWorld();
@ -49,6 +50,7 @@ public class Commandnuke extends EssentialsCommand {
}
}
}
});
}
}