From 8bb6cd38e758e54008e64eaa1f6fc2d315e72fe1 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 4 Jan 2011 16:22:22 +0800 Subject: [PATCH] Added Server.getTime and Server.setTime By: FrozenCow --- .../src/main/java/org/bukkit/craftbukkit/CraftServer.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 216a26b6e5..b8acb6c1f2 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -87,6 +87,14 @@ public final class CraftServer implements Server { return new World[] { console.e.getWorld() }; } + public long getTime() { + return console.e.e; + } + + public void setTime(long time) { + console.e.e = time; + } + public ServerConfigurationManager getHandle() { return server; }