mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 23:10:16 +01:00
Added Server.getTime and Server.setTime
By: FrozenCow <frozencow@gmail.com>
This commit is contained in:
parent
2c72e8e9d5
commit
c01c18a1d7
1 changed files with 14 additions and 0 deletions
|
@ -51,4 +51,18 @@ public interface Server {
|
|||
* @return An array of worlds
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue