mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-18 22:24:35 +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);
|
//Player player = Bukkit.getPlayer(playerName);
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
final OfflinePlayer player = Bukkit.getOfflinePlayer(playerName);
|
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!");
|
sender.sendMessage(ChatColor.RED + "Player not found!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue