mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-05 23:08:23 +00:00
Fix inverted messages in Commandpaytoggle
This commit is contained in:
parent
1382a05dc8
commit
18534f8576
1 changed files with 2 additions and 2 deletions
|
@ -36,9 +36,9 @@ public class Commandpaytoggle extends EssentialsToggleCommand {
|
||||||
|
|
||||||
user.setAcceptingPay(enabled);
|
user.setAcceptingPay(enabled);
|
||||||
|
|
||||||
user.sendMessage(!enabled ? tl("payToggleOn") : tl("payToggleOff"));
|
user.sendMessage(enabled ? tl("payToggleOn") : tl("payToggleOff"));
|
||||||
if (!sender.isPlayer() || !user.getBase().equals(sender.getPlayer())) {
|
if (!sender.isPlayer() || !user.getBase().equals(sender.getPlayer())) {
|
||||||
sender.sendMessage(!enabled ? tl("payEnabledFor", user.getDisplayName()) : tl("payDisabledFor", user.getDisplayName()));
|
sender.sendMessage(enabled ? tl("payEnabledFor", user.getDisplayName()) : tl("payDisabledFor", user.getDisplayName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue