Log fullrender messages to commandsender, versus just log
This commit is contained in:
parent
0b7bd72231
commit
fa33977469
3 changed files with 14 additions and 11 deletions
|
|
@ -363,14 +363,14 @@ public class DynmapPlugin extends JavaPlugin {
|
|||
for (int i = 1; i < args.length; i++) {
|
||||
World w = getServer().getWorld(args[i]);
|
||||
if(w != null)
|
||||
mapManager.renderFullWorld(new Location(w, 0, 0, 0));
|
||||
mapManager.renderFullWorld(new Location(w, 0, 0, 0),sender);
|
||||
else
|
||||
sender.sendMessage("World '" + args[i] + "' not defined/loaded");
|
||||
}
|
||||
} else if (player != null) {
|
||||
Location loc = player.getLocation();
|
||||
if(loc != null)
|
||||
mapManager.renderFullWorld(loc);
|
||||
mapManager.renderFullWorld(loc, sender);
|
||||
} else {
|
||||
sender.sendMessage("World name is required");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue