From 09ede8797154709af0a20234238e7ca4f5f449af Mon Sep 17 00:00:00 2001 From: tastybento Date: Wed, 1 May 2024 17:58:05 -0700 Subject: [PATCH] Write the Blueprint bundle meta data to admin info --- src/main/java/world/bentobox/bentobox/util/IslandInfo.java | 4 ++++ src/main/resources/locales/en-US.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/src/main/java/world/bentobox/bentobox/util/IslandInfo.java b/src/main/java/world/bentobox/bentobox/util/IslandInfo.java index cb5e4e4e8..9604aa33f 100644 --- a/src/main/java/world/bentobox/bentobox/util/IslandInfo.java +++ b/src/main/java/world/bentobox/bentobox/util/IslandInfo.java @@ -113,6 +113,10 @@ public class IslandInfo { if (island.getPurgeProtected()) { user.sendMessage("commands.admin.info.purge-protected"); } + // Show bundle info if available + island.getMetaData("bundle").ifPresent(mdv -> { + user.sendMessage("commands.admin.info.bundle", TextVariables.NAME, mdv.asString()); + }); // Fire info event to allow other addons to add to info IslandEvent.builder().island(island).location(island.getCenter()).reason(IslandEvent.Reason.INFO) .involvedPlayer(user.getUniqueId()).addon(addon).admin(true).build(); diff --git a/src/main/resources/locales/en-US.yml b/src/main/resources/locales/en-US.yml index 76f2b8ad4..0777e21b9 100644 --- a/src/main/resources/locales/en-US.yml +++ b/src/main/resources/locales/en-US.yml @@ -230,6 +230,7 @@ commands: banned-players: 'Banned players:' banned-format: '&c [name]' unowned: '&c Unowned' + bundle: '&a Blueprint Bundle used to create island: &b [name]' switch: description: switch on/off protection bypass op: '&c Ops can always bypass protection. Deop to use command.'