mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-25 01:44:26 +00:00
Add world and group name rewriting, refactor configs
This commit is contained in:
57 files changed
+420
-309
No files matched your search
@@ -58,6 +58,15 @@ public class Group extends PermissionHolder implements Identifiable<String> {
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getRawDisplayName() {
|
||||
return getPlugin().getConfiguration().getGroupNameRewrites().getOrDefault(name, name);
|
||||
}
|
||||
|
||||
public String getDisplayName() {
|
||||
String dn = getRawDisplayName();
|
||||
return dn.equals(name) ? name : name + " (" + dn + ")";
|
||||
}
|
||||
|
||||
/**
|
||||
* check to see if a group inherits a group
|
||||
* @param group The group to check membership of
|
||||
|
||||
Reference in new issue
Block a user