1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-10-01 16:46:51 +02:00
/manuadd command
This commit is contained in:
snowleo
2011-06-07 00:54:36 +02:00
parent cc22792d79
commit fb6f13cc88
8 changed files with 83 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
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;
@@ -15,7 +16,13 @@ public class Commandmanuadd extends EssentialsCommand
@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 group = args[1];
ess.getServer().dispatchCommand(sender, "/permissions "+player+" parents add "+group+"");
}