mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-15 07:05:52 +01: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
@ -50,7 +50,7 @@ public class Commandpay extends EssentialsLoopCommand {
|
||||
}
|
||||
loopOfflinePlayersConsumer(server, user.getSource(), false, user.isAuthorized("essentials.pay.multiple"), args[0], player -> {
|
||||
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"));
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user