From d715a6a066fca112d88af81f393874fe46f03bf7 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 9 May 2023 19:56:41 +0200 Subject: [PATCH] Hotfix BauInfoBauGuiItem Signed-off-by: yoyosource --- BauSystem_Main/src/BauSystem.properties | 1 + .../de/steamwar/bausystem/features/bau/BauInfoBauGuiItem.java | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/BauSystem_Main/src/BauSystem.properties b/BauSystem_Main/src/BauSystem.properties index fcc1f0e5..438728ee 100644 --- a/BauSystem_Main/src/BauSystem.properties +++ b/BauSystem_Main/src/BauSystem.properties @@ -144,6 +144,7 @@ BAU_INFO_ITEM_LORE_DAMAGE= BAU_INFO_ITEM_LORE_FIRE = §7Fire§8: §e{0} BAU_INFO_ITEM_LORE_COLOR = §7Color§8: §e{0} BAU_INFO_ITEM_LORE_PROTECT = §7Protect§8: §e{0} +BAU_INFO_ITEM_LORE_ITEMS = §7Items§8: §e{0} BAU_INFO_COMMAND_HELP = §8/§ebauinfo §8- §7Information regarding this build server BAU_INFO_COMMAND_OWNER = §7Owner: §e{0} diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/bau/BauInfoBauGuiItem.java b/BauSystem_Main/src/de/steamwar/bausystem/features/bau/BauInfoBauGuiItem.java index 7f3c27b9..d8ba9171 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/bau/BauInfoBauGuiItem.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/bau/BauInfoBauGuiItem.java @@ -25,6 +25,7 @@ import de.steamwar.bausystem.config.BauServer; import de.steamwar.bausystem.linkage.specific.BauGuiItem; import de.steamwar.bausystem.region.Region; import de.steamwar.bausystem.region.flags.Flag; +import de.steamwar.core.Core; import de.steamwar.inventory.SWItem; import de.steamwar.linkage.Linked; import de.steamwar.sql.SteamwarUser; @@ -58,6 +59,9 @@ public class BauInfoBauGuiItem extends BauGuiItem { if (flag == Flag.PROTECT && region.getFloorLevel() == 0) { continue; } + if (flag == Flag.ITEMS && Core.getVersion() < 19) { + continue; + } Flag.Value value = region.get(flag); if (value != null) { stringList.add(BauSystem.MESSAGE.parse("BAU_INFO_ITEM_LORE_" + flag.name(), player, BauSystem.MESSAGE.parse(value.getChatValue(), player)));