From 203d843dc8ee3a0f0e9d1cd2e32e44ceafe645ab Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Thu, 11 Jan 2024 01:00:56 +0100 Subject: [PATCH] Removes the 0000 UUID check, as it removed bedrock players --- .../command/SetPlayerPaymentTabCompleter.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/java/net/knarcraft/playerpayouts/command/SetPlayerPaymentTabCompleter.java b/src/main/java/net/knarcraft/playerpayouts/command/SetPlayerPaymentTabCompleter.java index 8bc55d4..13dc946 100644 --- a/src/main/java/net/knarcraft/playerpayouts/command/SetPlayerPaymentTabCompleter.java +++ b/src/main/java/net/knarcraft/playerpayouts/command/SetPlayerPaymentTabCompleter.java @@ -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;