Fixed being able to render other worlds from command.

This commit is contained in:
FrozenCow 2011-03-08 02:39:16 +01:00
parent d98fe89c42
commit 02e0f0aa24

View File

@ -323,7 +323,7 @@ public class DynmapPlugin extends JavaPlugin {
}
} else if (args[0].equals("fullrender")) {
if (player == null || player.isOp()) {
if (args.length > 2) {
if (args.length > 1) {
for (int i = 1; i < args.length; i++) {
World w = getServer().getWorld(args[i]);
mapManager.renderFullWorld(new Location(w, 0, 0, 0));