Interface LuckPermsModule
- All Superinterfaces:
ModuleSimple
Reads prefixes, suffixes and group weights from LuckPerms.
-
Method Summary
Modifier and TypeMethodDescriptionconfig()The config section this module reads its settings from.Every group defined in LuckPerms.intgetGroupWeight(FPlayer fPlayer) The weight of a player's highest group.The prefix LuckPerms gives a player.intgetSortWeight(FPlayer fPlayer) The weight a player is sorted by in the tab list.The suffix LuckPerms gives a player.booleanhasLuckPermission(FPlayer fPlayer, String permission) Whether LuckPerms grants a node to a player.booleanWhether LuckPerms grants every node, which means its answers carry no information.The permission that gates this module.Methods inherited from interface ModuleSimple
children, isDisable, name, onDisable, onEnable, permissions
-
Method Details
-
config
Integration.Luckperms config()Description copied from interface:ModuleSimpleThe config section this module reads its settings from.- Specified by:
configin interfaceModuleSimple- Returns:
- the settings
-
permission
Permission.Integration.Luckperms permission()Description copied from interface:ModuleSimpleThe permission that gates this module.- Specified by:
permissionin interfaceModuleSimple- Returns:
- the permission
-
hasLuckPermission
-
isAlwaysHaveTrue
boolean isAlwaysHaveTrue()Whether LuckPerms grants every node, which means its answers carry no information.- Returns:
- true if every node is granted
-
getGroupWeight
The weight of a player's highest group.- Parameters:
fPlayer- the player- Returns:
- the weight
-
getSortWeight
The weight a player is sorted by in the tab list.- Parameters:
fPlayer- the player- Returns:
- the weight
-
getPrefix
-
getSuffix
-
getGroups
-