mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Pretend like the player is offline when he is vanished
Part 1 of fixing #1745
This commit is contained in:
parent
f096e915cf
commit
53fdf750f4
@ -90,6 +90,10 @@ public final class CommandUtils {
|
||||
*/
|
||||
public static boolean checkPlayerExistence(CommandSender sender, String playerName, McMMOPlayer mcMMOPlayer) {
|
||||
if (mcMMOPlayer != null) {
|
||||
if (CommandUtils.hidden(sender, mcMMOPlayer.getPlayer(), false)) {
|
||||
sender.sendMessage(LocaleLoader.getString("Commands.Offline"));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user