Skip to content

Commit

Permalink
Add permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
voidpointer0x00 committed Apr 15, 2023
1 parent 884795e commit f673ed9
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,50 @@ softdepend: [ floodgate, PlaceholderAPI ]
commands:
whitelist:
description: Main command which includes all the rest - add, remove etc.
permission: 'voidwhitelist.whitelist' # this is new

permissions:
voidwhitelist.whitelist:
description: 'Allows to use the /whitelist command'
voidwhitelist.whitelist.add:
description: 'Allows to add players to whitelist'
voidwhitelist.whitelist.remove:
description: 'Allows to remove players from whitelist'
voidwhitelist.whitelist.off:
description: 'Allows to turn-off the whitelist'
voidwhitelist.whitelist.help:
description: 'Allows to get list of whitelist commands and their description'
voidwhitelist.whitelist.reload:
description: 'Allows to reload configuration'
voidwhitelist.whitelist.reconnect:
description: 'Allows to forcefully reconnect to database'
voidwhitelist.whitelist.gui:
description: 'Allows to use GUI'
voidwhitelist.whitelist.import-json:
description: 'Allows to import whitelist from JSON format to database'
voidwhitelist.whitelist.export-db:
description: 'Allows to export database into JSON format files'
voidwhitelist.whitelist.on:
description: 'Allows to turn-on the whitelist'
voidwhitelist.whitelist.info:
description: 'Allows to get whitelist information of a player'
voidwhitelist.whitelist.status:
description: 'Allows to check whether the whitelist is on or off'

voidwhitelist.whitelist.*:
description: 'Wildcard permission for all /whitelist children'
children:
voidwhitelist.whitelist.add: true
voidwhitelist.whitelist.remove: true
voidwhitelist.whitelist.off: true
voidwhitelist.whitelist.help: true
voidwhitelist.whitelist.reload: true
voidwhitelist.whitelist.reconnect: true
voidwhitelist.whitelist.gui: true
voidwhitelist.whitelist.import-json: true
voidwhitelist.whitelist.export-db: true
voidwhitelist.whitelist.on: true
voidwhitelist.whitelist.info: true
voidwhitelist.whitelist.status: true


0 comments on commit f673ed9

Please sign in to comment.