Skip to content

Commit

Permalink
prevent players from getting empty brackets as a status
Browse files Browse the repository at this point in the history
Took 8 minutes
  • Loading branch information
TubYoub committed Dec 13, 2024
1 parent 1d1efca commit 4b028c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public String getStatus(Player player) {
public void updateDisplayName(Player player) {
String status = getStatus(player);

if (status != null) {
if (status != "") {
String translatedStatus = translateColorsAndFormatting(status, player);
if (plugin.isLuckPermsPresent() && player.hasPermission("StatusPlugin.placeholders")) {
translatedStatus.replace("%LP_prefix%", Objects.requireNonNull(plugin.getLuckPerms().getPlayerAdapter(Player.class).getUser(player).getCachedData().getMetaData().getPrefix()));
Expand Down

0 comments on commit 4b028c9

Please sign in to comment.