diff options
author | ElgarL <ElgarL@palmergames.com> | 2013-01-29 16:56:03 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2013-01-29 16:56:03 +0000 |
commit | 518feaf8b686fa17eda6f7d5114163d8a327a73e (patch) | |
tree | d513541e8ecacdda978e77aff1ca685f598d1b4b /EssentialsGroupManager/src/org | |
parent | a0345bb7825fe235ef9c6e48d7089c15c6c20d07 (diff) | |
download | Essentials-518feaf8b686fa17eda6f7d5114163d8a327a73e.tar Essentials-518feaf8b686fa17eda6f7d5114163d8a327a73e.tar.gz Essentials-518feaf8b686fa17eda6f7d5114163d8a327a73e.tar.lz Essentials-518feaf8b686fa17eda6f7d5114163d8a327a73e.tar.xz Essentials-518feaf8b686fa17eda6f7d5114163d8a327a73e.zip |
Doh, actually find what world we want to check properly with mancheckw.
Diffstat (limited to 'EssentialsGroupManager/src/org')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java | 12 |
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() + "'."); |