mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 00:58:50 +01:00
Fix time/weather commands
This commit is contained in:
parent
d0493ccd2a
commit
d73ed137fa
@ -84,7 +84,7 @@ public class Commandtime extends EssentialsCommand {
|
|||||||
final boolean timeAdd = add;
|
final boolean timeAdd = add;
|
||||||
for (final World world : worlds) {
|
for (final World world : worlds) {
|
||||||
joiner.add(world.getName());
|
joiner.add(world.getName());
|
||||||
ess.scheduleLocationDelayedTask(world.getSpawnLocation(), () -> {
|
ess.scheduleGlobalDelayedTask(() -> {
|
||||||
long time = world.getTime();
|
long time = world.getTime();
|
||||||
if (!timeAdd) {
|
if (!timeAdd) {
|
||||||
time -= time % 24000;
|
time -= time % 24000;
|
||||||
|
@ -31,7 +31,7 @@ public class Commandweather extends EssentialsCommand {
|
|||||||
isStorm = args[0].equalsIgnoreCase("storm");
|
isStorm = args[0].equalsIgnoreCase("storm");
|
||||||
}
|
}
|
||||||
|
|
||||||
ess.scheduleEntityDelayedTask(user.getBase(), () -> {
|
ess.scheduleGlobalDelayedTask(() -> {
|
||||||
final World world = user.getWorld();
|
final World world = user.getWorld();
|
||||||
|
|
||||||
if (args.length > 1) {
|
if (args.length > 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user