Added Server.getTime and Server.setTime

This commit is contained in:
FrozenCow 2011-01-04 16:23:01 +08:00 committed by Dinner Bone
parent 3fd9085ca7
commit d2d468b374

View File

@ -51,4 +51,18 @@ public interface Server {
* @return An array of worlds * @return An array of worlds
*/ */
public World[] getWorlds(); public World[] getWorlds();
/**
* Gets the in-game time on the server (in hours*1000)
*
* @return The current time in hours*1000
*/
public long getTime();
/**
* Sets the in-game time on the server (in hours*1000)
*
* @param time The time to set the in-game time to (in hours*1000)
*/
public void setTime(long time);
} }