Fix time/weather commands

This commit is contained in:
Josh Roy 2023-08-22 12:12:33 -04:00
parent d0493ccd2a
commit d73ed137fa
No known key found for this signature in database
GPG Key ID: 86A69D08540BC29A
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ public class Commandtime extends EssentialsCommand {
final boolean timeAdd = add;
for (final World world : worlds) {
joiner.add(world.getName());
ess.scheduleLocationDelayedTask(world.getSpawnLocation(), () -> {
ess.scheduleGlobalDelayedTask(() -> {
long time = world.getTime();
if (!timeAdd) {
time -= time % 24000;

View File

@ -31,7 +31,7 @@ public class Commandweather extends EssentialsCommand {
isStorm = args[0].equalsIgnoreCase("storm");
}
ess.scheduleEntityDelayedTask(user.getBase(), () -> {
ess.scheduleGlobalDelayedTask(() -> {
final World world = user.getWorld();
if (args.length > 1) {