Switch default center point for maps to spawn point

This commit is contained in:
Mike Primm 2011-09-29 10:44:20 +08:00 committed by mikeprimm
parent dd4d448fc5
commit 560fe3c539
11 changed files with 45 additions and 42 deletions

View file

@ -787,7 +787,8 @@ public class DynmapPlugin extends JavaPlugin {
}
w = mapManager.getWorld(wname);
if(w != null) {
Location loc = new Location(w.world, w.configuration.getFloat("center/x", 0.0f), w.configuration.getFloat("center/y", 64f), w.configuration.getFloat("center/z", 0.0f));
Location spawn = w.world.getSpawnLocation();
Location loc = new Location(w.world, w.configuration.getDouble("center/x", spawn.getX()), w.configuration.getDouble("center/y", spawn.getY()), w.configuration.getDouble("center/z", spawn.getZ()));
mapManager.renderFullWorld(loc,sender, map);
}
else