Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
<dependency>
<groupId>me.lucko.luckperms</groupId>
<artifactId>luckperms</artifactId>
<version>5.4.102</version>
<version>5.5.65</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/LuckPerms.jar</systemPath>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,18 @@ public static void register() {
return new ElementTag(object.getGroup().getName(), true);
});

// <--[tag]
// @attribute <LuckPermsGroupTag.display_name>
// @returns ElementTag
// @plugin Depenizen, LuckPerms
// @description
// Returns the group's display name, if any.
// -->
tagProcessor.registerTag(ElementTag.class, "display_name", (attribute, object) -> {
String displayName = object.getGroup().getDisplayName();
return displayName != null ? new ElementTag(displayName, true) : null;
});

// <--[tag]
// @attribute <LuckPermsGroupTag.group_prefix>
// @returns ElementTag
Expand Down