mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-03 20:41:37 +00:00
Add config option to block /pay from ignored users (#3273)
This commit is contained in:
parent
b9f8fc2e11
commit
fdef1062f0
4 changed files with 11 additions and 1 deletions
|
@ -59,7 +59,7 @@ public class Commandpay extends EssentialsLoopCommand {
|
|||
protected void updatePlayer(final Server server, final CommandSource sender, final User player, final String[] args) throws ChargeException {
|
||||
User user = ess.getUser(sender.getPlayer());
|
||||
try {
|
||||
if (!player.isAcceptingPay()) {
|
||||
if (!player.isAcceptingPay() || (ess.getSettings().isPayExcludesIgnoreList() && player.isIgnoredPlayer(user))) {
|
||||
sender.sendMessage(tl("notAcceptingPay", player.getDisplayName()));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue