mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 10:07:37 +01:00
Reenabled time again by using Bukkit's getTime.
This commit is contained in:
parent
c5d5a85a17
commit
8162817041
@ -75,8 +75,9 @@ public class WebServerRequest extends Thread {
|
||||
sendHeader(out, 200, "text/plain", -1, System.currentTimeMillis());
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
//sb.append(current + " " + etc.getServer().getRelativeTime() + "\n");
|
||||
sb.append(current + " " + 0 +"\n");
|
||||
|
||||
long relativeTime = etc.getServer().getTime() % 24000;
|
||||
sb.append(current + " " + relativeTime + "\n");
|
||||
|
||||
for(Player player : etc.getServer().getOnlinePlayers()) {
|
||||
sb.append(player.getName() + " player " + player.getLocation().getX() + " " + player.getLocation().getY() + " " + player.getLocation().getZ() + "\n");
|
||||
|
Loading…
Reference in New Issue
Block a user