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,15 +44,12 @@ 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 (!uuid.startsWith("00000000-0000-0000")) {
if (offlinePlayer.getName() != null) { if (offlinePlayer.getName() != null) {
playerNames.add(offlinePlayer.getName()); playerNames.add(offlinePlayer.getName());
} else { } else {
playerNames.add(offlinePlayer.getUniqueId().toString()); playerNames.add(offlinePlayer.getUniqueId().toString());
} }
} }
}
return playerNames; return playerNames;
} }