mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-07 15:48:43 +00:00
Fix /pay working on vanished players (#4114)
Vanished players are now treated as offline players. Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
This commit is contained in:
parent
5171215817
commit
2c68d1b866
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ public class Commandpay extends EssentialsLoopCommand {
|
||||||
}
|
}
|
||||||
loopOfflinePlayersConsumer(server, user.getSource(), false, user.isAuthorized("essentials.pay.multiple"), args[0], player -> {
|
loopOfflinePlayersConsumer(server, user.getSource(), false, user.isAuthorized("essentials.pay.multiple"), args[0], player -> {
|
||||||
try {
|
try {
|
||||||
if (player.getBase() != null && !player.getBase().isOnline() && !canPayOffline) {
|
if (player.getBase() != null && (!player.getBase().isOnline() || player.isHidden(user.getBase())) && !canPayOffline) {
|
||||||
user.sendMessage(tl("payOffline"));
|
user.sendMessage(tl("payOffline"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue