Write the Blueprint bundle meta data to admin info

This commit is contained in:
tastybento 2024-05-01 17:58:05 -07:00
parent b1418c144f
commit 09ede87971
2 changed files with 5 additions and 0 deletions

View File

@ -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();

View File

@ -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.'