Adding -c switch to sudo to fake chat

This commit is contained in:
Chris Ward 2012-10-02 02:31:15 +10:00
parent d7829bef28
commit 2671f39951

View File

@ -26,6 +26,15 @@ public class Commandsudo extends EssentialsCommand
}
final User user = getPlayer(server, args, 0, false);
if(args[1].equalsIgnoreCase("say"))
{
if (user.isAuthorized("essentials.sudo.exempt"))
{
throw new Exception(_("sudoExempt"));
}
user.chat(getFinalArg(args, 2));
return;
}
final String command = args[1];
final String[] arguments = new String[args.length - 2];
if (arguments.length > 0)