summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2013-01-29 16:33:20 +0000
committerElgarL <ElgarL@palmergames.com>2013-01-29 16:33:20 +0000
commit30ab3d79a3f29c7f9b099b2453053f6d2cdd308e (patch)
treee038b5854b572a255ee0e06cb0b5f9ea988509f8 /EssentialsGroupManager/src
parenta6829f1d09d685af4b368f7e4948381d157bddb0 (diff)
downloadEssentials-30ab3d79a3f29c7f9b099b2453053f6d2cdd308e.tar
Essentials-30ab3d79a3f29c7f9b099b2453053f6d2cdd308e.tar.gz
Essentials-30ab3d79a3f29c7f9b099b2453053f6d2cdd308e.tar.lz
Essentials-30ab3d79a3f29c7f9b099b2453053f6d2cdd308e.tar.xz
Essentials-30ab3d79a3f29c7f9b099b2453053f6d2cdd308e.zip
Added '/mancheckw <world>' to inspect what permission files a world is
referencing.
Diffstat (limited to 'EssentialsGroupManager/src')
-rw-r--r--EssentialsGroupManager/src/Changelog.txt3
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java28
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/utils/GroupManagerPermissions.java3
3 files changed, 31 insertions, 3 deletions
diff --git a/EssentialsGroupManager/src/Changelog.txt b/EssentialsGroupManager/src/Changelog.txt
index edf179166..8a196d719 100644
--- a/EssentialsGroupManager/src/Changelog.txt
+++ b/EssentialsGroupManager/src/Changelog.txt
@@ -210,4 +210,5 @@ v 2.0:
- Do not grant any permissions (nor update Bukkit) if the server is in offline mode and the player has the permission node 'groupmanager.noofflineperms'.
- Negate 'groupmanager.noofflineperms' by default in the owner group.
- Add support for BukkitForge using 'overworld' as the main world name.
- - Prevent '*' permissions granting the 'groupmanager.noofflineperms' permission. \ No newline at end of file
+ - Prevent '*' permissions granting the 'groupmanager.noofflineperms' permission.
+ - Added '/mancheckw <world>' to inspect what permission files a world is referencing. \ No newline at end of file
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
}