Removes the 0000 UUID check, as it removed bedrock players

This commit is contained in:
Kristian Knarvik 2024-01-11 01:00:56 +01:00
parent 0b601d9bb7
commit 203d843dc8

View File

@ -44,13 +44,10 @@ public class SetPlayerPaymentTabCompleter implements TabCompleter {
playerNames.add(player.getName()); playerNames.add(player.getName());
} }
for (OfflinePlayer offlinePlayer : Bukkit.getOfflinePlayers()) { for (OfflinePlayer offlinePlayer : Bukkit.getOfflinePlayers()) {
String uuid = offlinePlayer.getUniqueId().toString(); if (offlinePlayer.getName() != null) {
if (!uuid.startsWith("00000000-0000-0000")) { playerNames.add(offlinePlayer.getName());
if (offlinePlayer.getName() != null) { } else {
playerNames.add(offlinePlayer.getName()); playerNames.add(offlinePlayer.getUniqueId().toString());
} else {
playerNames.add(offlinePlayer.getUniqueId().toString());
}
} }
} }
return playerNames; return playerNames;