mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-28 19:47:45 +01:00
Change console fullrender to seed from world's center setting, vs 0,0,0
This commit is contained in:
parent
c9494a312d
commit
829e1339a8
@ -658,15 +658,17 @@ public class DynmapPlugin extends JavaPlugin {
|
||||
if (args.length > 1) {
|
||||
for (int i = 1; i < args.length; i++) {
|
||||
int dot = args[i].indexOf(":");
|
||||
World w;
|
||||
DynmapWorld w;
|
||||
String wname = args[i];
|
||||
if(dot >= 0) {
|
||||
wname = args[i].substring(0, dot);
|
||||
map = args[i].substring(dot+1);
|
||||
}
|
||||
w = getServer().getWorld(wname);
|
||||
if(w != null)
|
||||
mapManager.renderFullWorld(new Location(w, 0, 0, 0),sender, map);
|
||||
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));
|
||||
mapManager.renderFullWorld(loc,sender, map);
|
||||
}
|
||||
else
|
||||
sender.sendMessage("World '" + wname + "' not defined/loaded");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user