summaryrefslogtreecommitdiffstats
path: root/EssentialsPermissionsCommands/src
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
commit776cf202a61faab4b1ba0ab1c29f09b1948d3b78 (patch)
treec8a6dd8f6eca9a522dba6199c910c2afd5ededf1 /EssentialsPermissionsCommands/src
parent74da9b5ee97712b80ea26f2c42dc93c88996bfcb (diff)
downloadEssentials-776cf202a61faab4b1ba0ab1c29f09b1948d3b78.tar
Essentials-776cf202a61faab4b1ba0ab1c29f09b1948d3b78.tar.gz
Essentials-776cf202a61faab4b1ba0ab1c29f09b1948d3b78.tar.lz
Essentials-776cf202a61faab4b1ba0ab1c29f09b1948d3b78.tar.xz
Essentials-776cf202a61faab4b1ba0ab1c29f09b1948d3b78.zip
Adding user permission alias
Diffstat (limited to 'EssentialsPermissionsCommands/src')
-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");
+ }
+
+
+}