mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-03-17 09:09:06 +01:00
Ensure nuke commands runs on correct threads
This commit is contained in:
parent
0e4bab24cb
commit
07fbf93001
@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user