fix: show correct color in list command if plot is owned by everyone

This commit is contained in:
xaver106 2022-04-24 00:38:31 +02:00
parent cceaa69601
commit c5d1655868
No known key found for this signature in database
GPG Key ID: 71FE12787D85A17E

View File

@ -420,7 +420,7 @@ public class ListCmd extends SubCommand {
Caption color; Caption color;
if (plot.getOwner() == null) { if (plot.getOwner() == null) {
color = TranslatableCaption.of("info.plot_list_no_owner"); 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"); color = TranslatableCaption.of("info.plot_list_owned_by");
} else if (plot.isAdded(player.getUUID())) { } else if (plot.isAdded(player.getUUID())) {
color = TranslatableCaption.of("info.plot_list_added_to"); color = TranslatableCaption.of("info.plot_list_added_to");