mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Merge pull request #165 from chrisgward/patch-2
Adding say command to sudo to fake chat
This commit is contained in:
commit
0dd0dba338
1 changed files with 9 additions and 0 deletions
|
@ -27,6 +27,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)
|
||||
|
|
Loading…
Reference in a new issue