Configuration¶
This page describes all configuration possibilities in the DKPerms config.yml.
Location: ./plugins/DKPerms/config.yml
Index
- Scope settings
- McNative settings
- Object settings
- Security settings
- Delete timeout settings
- Date format settings
- Commands settings
Scope settings¶
DKPerms uses different scopes to separate permission levels. The scopes are arranged hierarchically in a tree structure and can be configured individually for each server.
namespaceThe namespace where the plugin operates (Usually Minecraft)currentSettings for the scope on the current server.dynamicIf this value isTruethe scope will automatically detected on supported networks (e.g. BungeeCord, CloudNet).instanceA custom configured server scope (e.g. CityBuild-1).groupA custom configured server group area (all servers with the same role should have the same group).
serverGroupSplitHow the server group should be detected by the server name.worldKeyWhich scope key should be used to separate worlds (\\World=Plots).
Example:
scope:
namespace: 'Minecraft'
current:
dynamic: true
instance: '\ServerGroup=Server\Server=Server-1'
group: '\ServerGroup=Server'
serverGroupSplit: '-'
worldKey: 'World'
McNative settings¶
These settings define how the McNative permission api should integrate with DKPerms.
managementScopeThe scopes to be taken by the McNative api.groupTo which scope the McNative api should check and assign groups.permissionTo which scope the McNative api should check and assign permission.operatorTo which scope the McNative api should check and assign operator privileges (When /op is used).
Example:
mcnative:
managementScope:
group: '{global}'
permission: '{currentGroup}'
operator: '{currentGroup}'
Object settings¶
DKPerms uses different objects to store permissions (e.g. group and player). With this setting you can change the location of the storage scope.
playerThe player object type.scopeThe default scope to create and load players.groupThe group object type.scopeThe default scope to create and load groups.trackPermission group tracks.scopeThe default scope to create and load tracks.
Example:
object:
player:
scope: '\\namespace=minecraft'
group:
scope: '\\namespace=minecraft'
track:
scope: '\\namespace=minecraft'
Server settings¶
This section allows you to configure server access privileges.
joinrequiredEssential conditions that players must fulfill in order to join the server.joinpowerIf>0, players need a meta entryjoinpowerwith a higher or equal value.permissionControl the access with permissions.enabledIftrue, players need the configured permission to join the server.permissionThe required permissions.
fullDate formatting settings.enabledIftrue, players with this permission can also join when the server is full.permissionThe required permission to join a full server.priorityKickIftrue, when a player with full joining privileges joins your server, the player with the lowest priority will get kicked.
The joinpower can be configured to groups or players. Use ./perms <user/group> <name> meta set joinpower <value> to set the joinpower.
Example:
server:
join:
required:
joinpower: 0
permission:
enabled: false
permission: 'dkperms.server.join'
full:
enabled: false
permission: 'dkperms.server.join.full'
priorityKick: true
Security settings¶
Settings to keep DKPerms secure.
loggingChange logging.enabledIfTruechanges are logged into the database.commandsDKPerms commands.enabledIfTruecommands are enabled (console and chat).operatorDefault Minecraft operation privileges (When /op is used).enabledIfTrueoperators are allowed and /op can be used.restrictedCommand restricted to certain users.enabledIfTrueonly the configured users can execute DKPerms commands (except /rank).usersThe uuid or name of the players in an array that are allowed to execute DKPerms commands.
Example:
security:
logging:
enabled: true
commands:
enabled: true
operator:
enabled: false
restricted:
enabled: false
users: ['Dkrieger','cb7f0812-1fbb-4715-976e-a81e52be4b67']
Delete timeout settings¶
To clean your database from expired permissions, groups or properties, DKPerms uses a simple task. (Note, if the permission has expired before the task is executed, the permission is already not valid and visible).
deleteTimedOutEntriesDatabase cleanup task.enabledIfTruethe task will be executed.intervalHow often to run the task to delete unused entries (Use McNative duration format).
Example:
deleteTimedOutEntries:
enabled: true
interval: '30m'
Date format settings¶
Display format options
formatGeneral formatting settings.dateDate formatting settings.patternJava date time patterns (https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html).endlesslyThe symbol used for permanent things.
Example:
format:
date:
pattern: 'dd-MM-yyyy HH:mm'
endlessly: '-'
Commands settings¶
DKPerms commands settings
permissionThe DKPerms admin permission command.enabledIfTruethe command is enabled and can be used.nameThe name of the command.permissionThe required permission to use this command.aliasesAliases to execute this command.rankThe DKPerms simplified rank command....teamThe DKPerms team info command....
Example:
command:
permission:
enabled: true
name: 'permissions'
permission: 'dkperms.admin'
aliases: ['perms','permission','perm','dkperms']
rank:
enabled: true
name: 'rank'
permission: 'dkperms.rank'
aliases: ['ranks']
team:
enabled: true
name: 'team'
permission: 'dkperms.team'
aliases: []