From c5d1655868417851cae4b8f1ac10b740c209c868 Mon Sep 17 00:00:00 2001 From: xaver106 Date: Sun, 24 Apr 2022 00:38:31 +0200 Subject: [PATCH] fix: show correct color in list command if plot is owned by everyone --- Core/src/main/java/com/plotsquared/core/command/ListCmd.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/ListCmd.java b/Core/src/main/java/com/plotsquared/core/command/ListCmd.java index 8e177888d..9126f5242 100644 --- a/Core/src/main/java/com/plotsquared/core/command/ListCmd.java +++ b/Core/src/main/java/com/plotsquared/core/command/ListCmd.java @@ -420,7 +420,7 @@ public class ListCmd extends SubCommand { Caption color; if (plot.getOwner() == null) { color = TranslatableCaption.of("info.plot_list_no_owner"); - } else if (plot.isOwner(player.getUUID())) { + } else if (plot.isOwner(player.getUUID()) || plot.getOwner().equals(DBFunc.EVERYONE)) { color = TranslatableCaption.of("info.plot_list_owned_by"); } else if (plot.isAdded(player.getUUID())) { color = TranslatableCaption.of("info.plot_list_added_to");