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()) {
|
if (island.getPurgeProtected()) {
|
||||||
user.sendMessage("commands.admin.info.purge-protected");
|
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
|
// Fire info event to allow other addons to add to info
|
||||||
IslandEvent.builder().island(island).location(island.getCenter()).reason(IslandEvent.Reason.INFO)
|
IslandEvent.builder().island(island).location(island.getCenter()).reason(IslandEvent.Reason.INFO)
|
||||||
.involvedPlayer(user.getUniqueId()).addon(addon).admin(true).build();
|
.involvedPlayer(user.getUniqueId()).addon(addon).admin(true).build();
|
||||||
|
|
|
@ -230,6 +230,7 @@ commands:
|
||||||
banned-players: 'Banned players:'
|
banned-players: 'Banned players:'
|
||||||
banned-format: '&c [name]'
|
banned-format: '&c [name]'
|
||||||
unowned: '&c Unowned'
|
unowned: '&c Unowned'
|
||||||
|
bundle: '&a Blueprint Bundle used to create island: &b [name]'
|
||||||
switch:
|
switch:
|
||||||
description: switch on/off protection bypass
|
description: switch on/off protection bypass
|
||||||
op: '&c Ops can always bypass protection. Deop to use command.'
|
op: '&c Ops can always bypass protection. Deop to use command.'
|
||||||
|
|
Loading…
Reference in New Issue