Log fullrender messages to commandsender, versus just log

This commit is contained in:
Mike Primm 2011-06-16 01:58:12 -05:00
parent 0b7bd72231
commit fa33977469
3 changed files with 14 additions and 11 deletions

View file

@ -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");
}