mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-22 21:43:41 +00:00
Players should not be able to ignore Console
Also implement chat exempt permission in other commands.
This commit is contained in:
parent
a764f8c929
commit
97eada7dd6
9 changed files with 36 additions and 35 deletions
|
@ -55,7 +55,7 @@ public class Commandr extends EssentialsCommand
|
|||
if (target instanceof Player)
|
||||
{
|
||||
User player = ess.getUser(target);
|
||||
if (player.isIgnoredPlayer(sender instanceof Player ? ((Player)sender).getName() : Console.NAME))
|
||||
if (sender instanceof Player && player.isIgnoredPlayer(ess.getUser(sender)))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue