Package ru.tehkode.permissions.bukkit
Interface PermissionsExConfig
public interface PermissionsExConfig
Classic PermissionsEx plugin configuration view.
Exposed by PermissionManager.getConfiguration() and mirrors the
top-level settings from config.yml (backend selection, debug flags, updater behavior, and
related options).
-
Method Summary
Modifier and TypeMethodDescriptionbooleanallowOps()Returns whether server operators (op) receive implicit permission grants.booleanReturns whether updates should be applied automatically without prompting.booleanReturns whether user records should be created automatically for unknown players.org.bukkit.configuration.ConfigurationSectiongetBackendConfig(String backend) Returns the configuration section for a named backend.Returns the base directory used for PermissionsEx data files.Returns the configured default permission backend alias.Returns server tags used for multi-server permission scoping.booleanReturns whether online players should be notified about available plugin updates.booleanisDebug()Returns whether debug logging is enabled.voidsave()Persists the current configuration to disk.booleanReturns whether the default group should be written to storage on startup.booleanReturns whether player join/leave events should be logged.booleanReturns whether the built-in update checker is enabled.booleanReturns whether network-wide permission events should be propagated across linked servers.booleanReturns whether groups added via/pex user ... group addare appended last in the inheritance list.
-
Method Details
-
useNetEvents
boolean useNetEvents()Returns whether network-wide permission events should be propagated across linked servers.- Returns:
trueif net events are enabled
-
isDebug
boolean isDebug()Returns whether debug logging is enabled.- Returns:
trueif debug mode is active
-
allowOps
boolean allowOps()Returns whether server operators (op) receive implicit permission grants.- Returns:
trueif ops are allowed full access by default
-
userAddGroupsLast
boolean userAddGroupsLast()Returns whether groups added via/pex user ... group addare appended last in the inheritance list.- Returns:
trueto append new groups at the end of the parent list
-
getDefaultBackend
String getDefaultBackend()Returns the configured default permission backend alias.- Returns:
- backend alias (for example
"file"); nevernull
-
shouldLogPlayers
boolean shouldLogPlayers()Returns whether player join/leave events should be logged.- Returns:
trueif player activity logging is enabled
-
createUserRecords
boolean createUserRecords()Returns whether user records should be created automatically for unknown players.- Returns:
trueto create user records on first access
-
saveDefaultGroup
boolean saveDefaultGroup()Returns whether the default group should be written to storage on startup.- Returns:
trueto persist the default group definition automatically
-
updaterEnabled
boolean updaterEnabled()Returns whether the built-in update checker is enabled.- Returns:
trueif update checks are performed
-
alwaysUpdate
boolean alwaysUpdate()Returns whether updates should be applied automatically without prompting.- Returns:
trueto always apply available updates
-
informPlayers
boolean informPlayers()Returns whether online players should be notified about available plugin updates.- Returns:
trueto inform players when an update is available
-
getServerTags
Returns server tags used for multi-server permission scoping.- Returns:
- list of tag strings; never
null
-
getBasedir
String getBasedir()Returns the base directory used for PermissionsEx data files.- Returns:
- absolute or plugin-relative base directory path; never
null
-
getBackendConfig
Returns the configuration section for a named backend.- Parameters:
backend- backend alias (for example"file"or"sql")- Returns:
- backend-specific configuration section, or
nullif not configured
-
save
void save()Persists the current configuration to disk.
-