From 786488603efdc6da423cbf3fdd1d7e7372fa4497 Mon Sep 17 00:00:00 2001 From: FrozenCow Date: Tue, 4 Jan 2011 16:22:22 +0800 Subject: Added Server.getTime and Server.setTime --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main/java/org') diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 216a26b6..b8acb6c1 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/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; } -- cgit v1.2.3