From b3afc15d5f17ca2996d044d3f27ee329b6640c0f Mon Sep 17 00:00:00 2001 From: KHobbits Date: Wed, 8 Jun 2011 17:20:51 +0100 Subject: Adding some GM aliases --- .../essentials/permissions/Commandmangdeli.java | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmangdeli.java (limited to 'EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmangdeli.java') diff --git a/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmangdeli.java b/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmangdeli.java new file mode 100644 index 000000000..4d44d40da --- /dev/null +++ b/EssentialsPermissionsCommands/src/com/earth2me/essentials/permissions/Commandmangdeli.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 Commandmangdeli extends EssentialsCommand +{ + public Commandmangdeli() + { + super("mangdeli"); + } + + @Override + protected void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception + { + if (args.length < 2) + { + throw new NotEnoughArgumentsException(); + } + final String target = args[0]; + final String group = args[1]; + ess.getServer().dispatchCommand(sender, "/permissions g:"+target+" parents remove "+group+""); + } + + +} -- cgit v1.2.3