summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <KHobbits@KHobbits-PC>2011-06-08 17:36:43 +0100
committerKHobbits <KHobbits@KHobbits-PC>2011-06-08 17:36:43 +0100
commitf5fac6f9f53a4385711a929929b274c538201b00 (patch)
tree115b00d76eda43166e51b06740f593dbea88ac27
parent5d925aa338509a9b9b2b377d764faa664c665288 (diff)
downloadEssentials-f5fac6f9f53a4385711a929929b274c538201b00.tar
Essentials-f5fac6f9f53a4385711a929929b274c538201b00.tar.gz
Essentials-f5fac6f9f53a4385711a929929b274c538201b00.tar.lz
Essentials-f5fac6f9f53a4385711a929929b274c538201b00.tar.xz
Essentials-f5fac6f9f53a4385711a929929b274c538201b00.zip
Adding user permission alias
-rw-r--r--EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanuaddp.java29
-rw-r--r--EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanudelp.java29
-rw-r--r--EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanudelsub.java2
-rw-r--r--EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanulistp.java28
4 files changed, 87 insertions, 1 deletions
diff --git a/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanuaddp.java b/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanuaddp.java
new file mode 100644
index 000000000..0a878af19
--- /dev/null
+++ b/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanuaddp.java
@@ -0,0 +1,29 @@
+package com.earth2me.essentials.permissions;
+
+import com.earth2me.essentials.commands.EssentialsCommand;
+import com.earth2me.essentials.commands.NotEnoughArgumentsException;
+import org.bukkit.Server;
+import org.bukkit.command.CommandSender;
+
+
+public class Commandmanuaddp extends EssentialsCommand
+{
+ public Commandmanuaddp()
+ {
+ super("manuaddp");
+ }
+
+ @Override
+ protected void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception
+ {
+ if (args.length < 2)
+ {
+ throw new NotEnoughArgumentsException();
+ }
+ final String player = args[0];
+ final String perm = args[1];
+ ess.getServer().dispatchCommand(sender, "/permissions "+player+" perms add "+perm+"");
+ }
+
+
+}
diff --git a/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanudelp.java b/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanudelp.java
new file mode 100644
index 000000000..229e33d22
--- /dev/null
+++ b/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanudelp.java
@@ -0,0 +1,29 @@
+package com.earth2me.essentials.permissions;
+
+import com.earth2me.essentials.commands.EssentialsCommand;
+import com.earth2me.essentials.commands.NotEnoughArgumentsException;
+import org.bukkit.Server;
+import org.bukkit.command.CommandSender;
+
+
+public class Commandmanudelp extends EssentialsCommand
+{
+ public Commandmanudelp()
+ {
+ super("manudelp");
+ }
+
+ @Override
+ protected void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception
+ {
+ if (args.length < 2)
+ {
+ throw new NotEnoughArgumentsException();
+ }
+ final String player = args[0];
+ final String perm = args[1];
+ ess.getServer().dispatchCommand(sender, "/permissions "+player+" perms remove "+perm+"");
+ }
+
+
+}
diff --git a/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanudelsub.java b/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanudelsub.java
index 65f4b091e..f009a78d9 100644
--- a/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanudelsub.java
+++ b/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanudelsub.java
@@ -10,7 +10,7 @@ public class Commandmanudelsub extends EssentialsCommand
{
public Commandmanudelsub()
{
- super("manudel");
+ super("manudelsub");
}
@Override
diff --git a/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanulistp.java b/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanulistp.java
new file mode 100644
index 000000000..511a98b66
--- /dev/null
+++ b/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmanulistp.java
@@ -0,0 +1,28 @@
+package com.earth2me.essentials.permissions;
+
+import com.earth2me.essentials.commands.EssentialsCommand;
+import com.earth2me.essentials.commands.NotEnoughArgumentsException;
+import org.bukkit.Server;
+import org.bukkit.command.CommandSender;
+
+
+public class Commandmanulistp extends EssentialsCommand
+{
+ public Commandmanulistp()
+ {
+ super("manuaddp");
+ }
+
+ @Override
+ protected void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception
+ {
+ if (args.length < 1)
+ {
+ throw new NotEnoughArgumentsException();
+ }
+ final String player = args[0];
+ ess.getServer().dispatchCommand(sender, "/permissions "+player+" perms list");
+ }
+
+
+}