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());
}
for (OfflinePlayer offlinePlayer : Bukkit.getOfflinePlayers()) {
String uuid = offlinePlayer.getUniqueId().toString();
if (!uuid.startsWith("00000000-0000-0000")) {
if (offlinePlayer.getName() != null) {
playerNames.add(offlinePlayer.getName());
} else {
playerNames.add(offlinePlayer.getUniqueId().toString());
}
if (offlinePlayer.getName() != null) {
playerNames.add(offlinePlayer.getName());
} else {
playerNames.add(offlinePlayer.getUniqueId().toString());
}
}
return playerNames;