mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-25 01:21:21 +01:00
Write the Blueprint bundle meta data to admin info
This commit is contained in:
parent
b1418c144f
commit
09ede87971
@ -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();
|
||||
|
@ -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.'
|
||||
|
Loading…
Reference in New Issue
Block a user