Have per-world control of sending player position and health, prevent

player icon flicker on addplayer (even when not on world or position
is obfuscated)
This commit is contained in:
Mike Primm 2011-06-03 08:42:24 -05:00
parent 6a50b2ebcd
commit 38163133cb
6 changed files with 17 additions and 6 deletions

View file

@ -295,6 +295,8 @@ public class MapManager {
List<ConfigurationNode> loclist = worldConfiguration.getNodes("fullrenderlocations");
dynmapWorld.seedloc = new ArrayList<Location>();
dynmapWorld.servertime = (int)(w.getTime() % 24000);
dynmapWorld.sendposition = worldConfiguration.getBoolean("sendposition", true);
dynmapWorld.sendhealth = worldConfiguration.getBoolean("sendhealth", true);
if(loclist != null) {
for(ConfigurationNode loc : loclist) {
Location lx = new Location(w, loc.getDouble("x", 0), loc.getDouble("y", 64), loc.getDouble("z", 0));