summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorFrozenCow <frozencow@gmail.com>2011-01-04 16:22:22 +0800
committerDinner Bone <dinnerbone@dinnerbone.com>2011-01-05 18:57:35 +0800
commit786488603efdc6da423cbf3fdd1d7e7372fa4497 (patch)
treee13a61dbf5c27b8892a13ea46b7f789f57d76844 /src/main/java/org
parent4792d55a08c9cb05a29a75219bdac996bdbee0e5 (diff)
downloadcraftbukkit-786488603efdc6da423cbf3fdd1d7e7372fa4497.tar
craftbukkit-786488603efdc6da423cbf3fdd1d7e7372fa4497.tar.gz
craftbukkit-786488603efdc6da423cbf3fdd1d7e7372fa4497.tar.lz
craftbukkit-786488603efdc6da423cbf3fdd1d7e7372fa4497.tar.xz
craftbukkit-786488603efdc6da423cbf3fdd1d7e7372fa4497.zip
Added Server.getTime and Server.setTime
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftServer.java8
1 files changed, 8 insertions, 0 deletions
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;
}