summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandtime.java
diff options
context:
space:
mode:
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandtime.java')
-rwxr-xr-xEssentials/src/com/earth2me/essentials/commands/Commandtime.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtime.java b/Essentials/src/com/earth2me/essentials/commands/Commandtime.java
index 604ca14a4..d7a339b9e 100755
--- a/Essentials/src/com/earth2me/essentials/commands/Commandtime.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandtime.java
@@ -94,7 +94,9 @@ public class Commandtime extends EssentialsCommand
// Update the time
for (World world : worlds)
{
- world.setTime(ticks);
+ long time = world.getTime();
+ time -= time % 24000;
+ world.setTime(time + 24000 + ticks);
}
// Inform the sender of the change