Fixed whocommand

This commit is contained in:
Matt 2016-02-19 19:20:41 -05:00
parent 8f552d225e
commit ae35e1423d

View file

@ -149,7 +149,7 @@ public class WhoCommand extends PKCommand {
//Player player = Bukkit.getPlayer(playerName);
@SuppressWarnings("deprecation")
final OfflinePlayer player = Bukkit.getOfflinePlayer(playerName);
if (player == null || !player.hasPlayedBefore()) {
if (player == null || !player.hasPlayedBefore() && !player.isOnline()) {
sender.sendMessage(ChatColor.RED + "Player not found!");
return;
}