From 53fdf750f4fb714055216e76c4625750bb4d41b3 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Sat, 18 Jan 2014 11:48:02 +0100 Subject: [PATCH] Pretend like the player is offline when he is vanished Part 1 of fixing #1745 --- .../java/com/gmail/nossr50/util/commands/CommandUtils.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/util/commands/CommandUtils.java b/src/main/java/com/gmail/nossr50/util/commands/CommandUtils.java index f35802294..7e2b7dde8 100644 --- a/src/main/java/com/gmail/nossr50/util/commands/CommandUtils.java +++ b/src/main/java/com/gmail/nossr50/util/commands/CommandUtils.java @@ -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; }