mirror of
https://github.com/AppleDash/SaneEconomy.git
synced 2024-09-27 14:12:58 +02:00
Really fix OfflinePlayer bug.
This commit is contained in:
parent
1f26acb49d
commit
98f8e66c58
@ -19,7 +19,7 @@ public class PlayerUtils {
|
||||
public static OfflinePlayer getOfflinePlayer(String playerNameOrUUID) {
|
||||
OfflinePlayer player = tryGetFromUUID(playerNameOrUUID);
|
||||
|
||||
if (player != null && player.hasPlayedBefore()) {
|
||||
if (player != null && (player.hasPlayedBefore() || player.isOnline())) {
|
||||
return player;
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ public class PlayerUtils {
|
||||
player = Bukkit.getServer().getOfflinePlayer(playerNameOrUUID);
|
||||
}
|
||||
|
||||
if ((player != null) && !player.hasPlayedBefore()) {
|
||||
if ((player != null) && (!player.hasPlayedBefore() && !player.isOnline())) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user