mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-14 04:47:51 +00:00
Fixed whocommand
This commit is contained in:
parent
8f552d225e
commit
ae35e1423d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue