Pretend like the player is offline when he is vanished

Part 1 of fixing #1745
This commit is contained in:
TfT_02 2014-01-18 11:48:02 +01:00
parent f096e915cf
commit 53fdf750f4

View File

@ -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;
}