Class LimitsFile
java.lang.Object
me.tayebyassine.homestead.resources.ResourceFile
me.tayebyassine.homestead.resources.files.LimitsFile
Typed accessor for
limits.yml.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGroupLimit(String group, String limitKey) A group-based limit value.The limit resolution method used by the plugin.The set of permission group keys defined in the config.getPermissionLimit(String group, String limitKey) A permission-based limit value for a specific group.The ordered list of permission-group priority keys.getPlayerLimit(String playerName, String limitKey) A player-specific limit override, ornullif the player has no override for this limit.getStaticLimit(boolean isOp, String limitKey) A static limit value for op or non-op players.Methods inherited from class ResourceFile
getBoolean, getBoolean, getConfig, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getIntegerList, getKeysUnderPath, getLong, getLong, getRaw, getString, getString, getStringList
-
Constructor Details
-
LimitsFile
- Throws:
FileNotFoundException
-
-
Method Details
-
getLimitsMethod
The limit resolution method used by the plugin.Valid values are
"static","groups", or"permissions".- Returns:
- the method name, defaults to
"static"
-
getPlayerLimit
-
getStaticLimit
-
getGroupLimit
-
getPermissionsPriority
-
getPermissionGroupKeys
-
getPermissionLimit
-