mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-28 19:47:45 +01:00
Fixed JsonTimerTask.
This commit is contained in:
parent
119abb33eb
commit
5778611227
@ -35,7 +35,7 @@ class JsonTimerTask extends TimerTask {
|
||||
update.timestamp = current;
|
||||
update.servertime = world.getTime() % 24000;
|
||||
|
||||
Player[] players = mapManager.playerList.getVisiblePlayers();
|
||||
Player[] players = plugin.playerList.getVisiblePlayers();
|
||||
update.players = new Client.Player[players.length];
|
||||
for (int i = 0; i < players.length; i++) {
|
||||
Player p = players[i];
|
||||
@ -63,4 +63,4 @@ class JsonTimerTask extends TimerTask {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -23,8 +23,6 @@ public class MapManager {
|
||||
|
||||
public Map<String, DynmapWorld> worlds = new HashMap<String, DynmapWorld>();
|
||||
public Map<String, DynmapWorld> inactiveworlds = new HashMap<String, DynmapWorld>();
|
||||
|
||||
public PlayerList playerList;
|
||||
|
||||
/* lock for our data structures */
|
||||
public static final Object lock = new Object();
|
||||
|
Loading…
Reference in New Issue
Block a user