diff options
author | ElgarL <ElgarL@palmergames.com> | 2013-01-29 16:33:20 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2013-01-29 16:33:20 +0000 |
commit | 7fc4a75d4dc059de7da144e64f3bc5550a946096 (patch) | |
tree | 4b0d5db6d988c99c2ffd23cc7ab56c6f21192b00 /EssentialsGroupManager/src/org/anjocaido | |
parent | e9e9efd2d7ff96475ff1995ee48ed91f0824c341 (diff) | |
download | Essentials-7fc4a75d4dc059de7da144e64f3bc5550a946096.tar Essentials-7fc4a75d4dc059de7da144e64f3bc5550a946096.tar.gz Essentials-7fc4a75d4dc059de7da144e64f3bc5550a946096.tar.lz Essentials-7fc4a75d4dc059de7da144e64f3bc5550a946096.tar.xz Essentials-7fc4a75d4dc059de7da144e64f3bc5550a946096.zip |
Added '/mancheckw <world>' to inspect what permission files a world is
referencing.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java | 28 | ||||
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/utils/GroupManagerPermissions.java | 3 |
2 files changed, 29 insertions, 2 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java index 3236b9b84..9a1583d86 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java @@ -1895,7 +1895,7 @@ public class GroupManager extends JavaPlugin { case manselect: if (args.length < 1) { - sender.sendMessage(ChatColor.RED + "Review your arguments count! (/<command> <world>)"); + sender.sendMessage(ChatColor.RED + "Review your arguments count! (/manselect <world>)"); sender.sendMessage(ChatColor.YELLOW + "Worlds available: "); ArrayList<OverloadedWorldHolder> worlds = worldsHolder.allWorldsDataList(); auxString = ""; @@ -1935,6 +1935,32 @@ public class GroupManager extends JavaPlugin { sender.sendMessage(ChatColor.YELLOW + "You have removed your world selection. Working with current world(if possible)."); return true; + + case mancheckw: + if (args.length < 1) { + sender.sendMessage(ChatColor.RED + "Review your arguments count! (/mancheckw <world>)"); + sender.sendMessage(ChatColor.YELLOW + "Worlds available: "); + ArrayList<OverloadedWorldHolder> worlds = worldsHolder.allWorldsDataList(); + auxString = ""; + for (int i = 0; i < worlds.size(); i++) { + auxString += worlds.get(i).getName(); + if ((i + 1) < worlds.size()) { + auxString += ", "; + } + } + sender.sendMessage(ChatColor.YELLOW + auxString); + return false; + } + + + dataHolder = worldsHolder.getWorldData(auxString); + + sender.sendMessage(ChatColor.YELLOW + "You have selected world '" + dataHolder.getName() + "'."); + sender.sendMessage(ChatColor.YELLOW + "This world is using the following data files.."); + sender.sendMessage(ChatColor.YELLOW + "Groups: " + dataHolder.getGroupsFile().getAbsolutePath()); + sender.sendMessage(ChatColor.YELLOW + "Users: " + dataHolder.getUsersFile().getAbsolutePath()); + + return true; default: break; diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/utils/GroupManagerPermissions.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/utils/GroupManagerPermissions.java index 4a7298b9c..020e4c6f1 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/utils/GroupManagerPermissions.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/utils/GroupManagerPermissions.java @@ -49,5 +49,6 @@ public enum GroupManagerPermissions { mantogglesave, manworld, manselect, - manclear + manclear, + mancheckw } |