summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src/org/anjocaido
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2013-01-29 16:56:03 +0000
committerElgarL <ElgarL@palmergames.com>2013-01-29 16:56:03 +0000
commit6ea956b11c54f7247e82a2dcb1385670c481e2cc (patch)
treee627b7b360296c795b8f2defe90fa61e0a4b8eeb /EssentialsGroupManager/src/org/anjocaido
parent132aa0cc1d4d8cd39eeefa22fb29510a443157ca (diff)
downloadEssentials-6ea956b11c54f7247e82a2dcb1385670c481e2cc.tar
Essentials-6ea956b11c54f7247e82a2dcb1385670c481e2cc.tar.gz
Essentials-6ea956b11c54f7247e82a2dcb1385670c481e2cc.tar.lz
Essentials-6ea956b11c54f7247e82a2dcb1385670c481e2cc.tar.xz
Essentials-6ea956b11c54f7247e82a2dcb1385670c481e2cc.zip
Doh, actually find what world we want to check properly with mancheckw.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
index 9a1583d86..050bd9995 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
@@ -1952,7 +1952,17 @@ public class GroupManager extends JavaPlugin {
return false;
}
-
+ auxString = "";
+ for (int i = 0; i < args.length; i++) {
+ if (args[i] == null) {
+ logger.warning("Bukkit gave invalid arguments array! Cmd: " + cmd.getName() + " args.length: " + args.length);
+ return false;
+ }
+ auxString += args[i];
+ if (i < (args.length - 1)) {
+ auxString += " ";
+ }
+ }
dataHolder = worldsHolder.getWorldData(auxString);
sender.sendMessage(ChatColor.YELLOW + "You have selected world '" + dataHolder.getName() + "'.");