diff --git a/src/main/java/tc/oc/pgm/prefix/ConfigPrefixProvider.java b/src/main/java/tc/oc/pgm/prefix/ConfigPrefixProvider.java index 84e1181267..0cb030c2c6 100644 --- a/src/main/java/tc/oc/pgm/prefix/ConfigPrefixProvider.java +++ b/src/main/java/tc/oc/pgm/prefix/ConfigPrefixProvider.java @@ -34,11 +34,13 @@ public void removePlayer(UUID uuid) { private String getPrefixFromConfig(UUID uuid) { final Player player = Bukkit.getPlayer(uuid); if (player == null) return ""; + + StringBuilder builder = new StringBuilder(); for (Prefix prefix : Prefixes.getPrefixes().values()) { if (player.hasPermission(prefix.permission)) { - return prefix.toString(); + builder.append(prefix.toString()); } } - return ""; + return builder.toString(); } }