From b1418c144f82cc9bdcdbc6d72a95442bca17519b Mon Sep 17 00:00:00 2001 From: tastybento Date: Wed, 1 May 2024 08:05:11 -0700 Subject: [PATCH 1/2] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8989d0508..7863ac4cf 100644 --- a/README.md +++ b/README.md @@ -112,9 +112,10 @@ repositories { } dependencies { - compileOnly 'world.bentobox:bentobox:PUT-VERSION-HERE' + compileOnly 'world.bentobox:bentobox:PUT-VERSION-HERE-SNAPSHOT' } ``` +**Note:** Due to a Gradle issue with versions for Maven, you need to use -SNAPSHOT at the end. ### History From 09ede8797154709af0a20234238e7ca4f5f449af Mon Sep 17 00:00:00 2001 From: tastybento Date: Wed, 1 May 2024 17:58:05 -0700 Subject: [PATCH 2/2] 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.'