1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-06-24 13:44:49 +02:00

Updated Permissions (textile => markdown)

montlikadani 2019-05-02 16:55:03 +02:00
parent cdf32fbd9e
commit 796bfd1614
2 changed files with 26 additions and 253 deletions

26
Permissions.md Normal file

@ -0,0 +1,26 @@
By default, _Jobs_ should grant the appropriate permissions to users out of the box.
You may also give permission for player like `jobs.max.3`, so they could take 3 jobs even if in generalConfig max jobs set to 2.
You may also disable jobs in specific worlds with `jobs.world.worldname`: false, or disallow certain jobs with `jobs.join.jobname`: false
Permissions can be found in [this](https://github.com/Zrips/Jobs/blob/master/src/main/resources/plugin.yml) page.
<pre><code>
PermissionsEx
PEX IS UNSUPPORTED. USE AT YOUR OWN RISK. THIS IS INFORMATIONAL ONLY
If you want to use the built-in permission system in Jobs, you MUST turn strict-mode to false AND compatibility-mode to true in your PermissionsEx/config.yml.
I would recommend turning this off if you are having difficulty setting up permissions. The majority of issues is due to incorrect permissions.
If you don't understand any of this, just use the example below to turn off strict-mode and turn compatibility-mode on.
PermissionsEx/config.yml
permissions:
backend: file
backends:
file:
file: permissions.yml
superperms:
strict-mode: false
compatibility-mode: true</code></pre>

@ -1,253 +0,0 @@
<pre><code>By default, Jobs should grant the appropriate permissions to users out of the box.
You may also give permission for player like jobs.max.3, so they could take 3 jobs even if in GenetalConfig max jobs set to 2.
You may also disable jobs in specific worlds with jobs.world.worldname: false, or disallow certain jobs with jobs.join.jobname: false
permissions:
jobs.*:
description: Grants access to all Jobs commands
children:
jobs.admin: true
jobs.autojoin.*: true
jobs.autojoin.*:
default: false
jobs.admin:
description: Grants permissions as an admin
default: false
children:
jobs.use: true
jobs.command.*: true
jobs.use:
description: Grants ability to use this plugin
default: true
jobs.command.*:
description: Grants player access to all commands
default: false
children:
jobs.command.archive: true
jobs.command.browse: true
jobs.command.stats: true
jobs.command.admin.stats: true
jobs.command.admin.archive: true
jobs.command.archive: true
jobs.command.join: true
jobs.command.leave: true
jobs.command.leaveall: true
jobs.command.log: true
jobs.command.info: true
jobs.command.playerinfo: true
jobs.command.fire: true
jobs.command.fireall: true
jobs.command.employ: true
jobs.command.bonus: true
jobs.command.edititembonus: true
jobs.command.promote: true
jobs.command.points: true
jobs.command.quests: true
jobs.command.demote: true
jobs.command.grantxp: true
jobs.command.removexp: true
jobs.command.transfer: true
jobs.command.reload: true
jobs.command.help: true
jobs.command.top: true
jobs.command.gtop: true
jobs.command.toggle: true
jobs.command.limit: true
jobs.command.give: true
jobs.command.signs: true
jobs.command.shop: true
jobs.command.stats: true
jobs.command.fixnames: true
jobs.command.signupdate: true
jobs.command.moneyboost: true
jobs.command.exp: true
jobs.command.level: true
jobs.command.clearownership: true
jobs.command.expboost: true
jobs.command.iteminfo: true
jobs.command.itembonus: true
jobs.command.blockinfo: true
jobs.command.browse:
description: Grants access to the browse command
default: true
jobs.command.top:
description: Grants access to the top command
default: true
jobs.command.gtop:
description: Grants access to the gtop command
default: true
jobs.command.stats:
description: Grants access to the stats command
default: true
jobs.command.archive:
description: Grants access to the archive command
default: true
jobs.command.admin.archive:
description: Grants access to the archive command on other players
default: true
jobs.command.admin.stats:
description: Grants access to the stats command on other players
default: true
jobs.command.join:
description: Grants access to the join command
default: true
jobs.command.leave:
description: Grants access to the leave command
default: true
jobs.command.leaveall:
description: Grants access to the leaveall command
default: true
jobs.command.info:
description: Grants access to the info command
default: true
jobs.command.playerinfo:
description: Grants access to the playerinfo command
default: op
jobs.command.fire:
description: Grants access to the fire command
default: op
jobs.command.fireall:
description: Grants access to the fireall command
default: op
jobs.command.employ:
description: Grants access to the employ command
default: op
jobs.command.promote:
description: Grants access to the promote command
default: op
jobs.command.demote:
description: Grants access to the demote command
default: op
jobs.command.grantxp:
description: Grants access to the grantxp command
default: op
jobs.command.removexp:
description: Grants access to the removexp command
default: op
jobs.command.transfer:
description: Grants access to the transfer command
default: op
jobs.command.reload:
description: Grants access to the reload command
default: op
jobs.command.signupdate:
description: Grants access to the reload command
default: op
jobs.command.give:
description: Grants access to the give command
default: op
jobs.command.expboost:
description: Grants access to the expboost command
default: op
jobs.command.moneyboost:
description: Grants access to the moneyboost command
default: op
jobs.command.help:
description: Grants access to the help command
default: true
jobs.command.toggle:
description: Grants access to the toggle command
default: true
jobs.command.limit:
description: Grants access to the limit command
default: true
jobs.command.fixnames:
description: Grants access to the fixnames command
default: true
jobs.command.log:
description: Grants access to the log command
default: true
jobs.command.shop:
description: Grants access to the shop command
default: true
jobs.command.log.others:
description: Grants access to the log command
default: op
jobs.command.glog:
description: Grants access to the glog command
default: op
jobs.command.bonus:
description: Grants access to the bonus command
default: true
jobs.command.points:
description: Grants access to the points command
default: true
jobs.command.blockinfo:
description: Grants access to the blockinfo command
default: true
jobs.command.iteminfo:
description: Grants access to the iteminfo command
default: true
jobs.command.exp:
description: Grants access to the exp command
default: op
jobs.command.level:
description: Grants access to the level command
default: op
jobs.command.quests:
description: Grants access to the quests command
default: true
jobs.command.clearownership:
description: Grants access to the clearownership command
default: true
jobs.command.itembonus:
description: Grants access to the itembonus command
default: true
jobs.command.edititembonus:
description: Grants access to the edititembonus command
default: op
jobs.area.add:
description: Grants access to the area add command
default: false
jobs.area.remove:
description: Grants access to the area remove command
default: false</code></pre>
<pre><code>
Custom Permissions
Jobs can grant permissions to players like any SuperPerms compatible plugin (PermissionsBukkit, PEX, bPermissions, etc).
You can customize each job to grant specific permissions to players when they join a particular job in the "permissions:" section of a job.
Jobs:
...
Miner:
fullname: Miner
shortname: M
...
// Grant permissions to miners
permissions:
# grant this permission to all miners
myplugin.mypermission:
value: true
level: 0
# grant this permission to all miners who reach level 10
myplugin.myotherpermission:
value: true
level: 10
# revoke this permission for all miners
myplugin.myrevokedpermission:
value: false
level: 0
...</code></pre>
<pre><code>
PermissionsEx
PEX IS UNSUPPORTED. USE AT YOUR OWN RISK. THIS IS INFORMATIONAL ONLY
If you want to use the built-in permission system in Jobs, you MUST turn strict-mode to false AND compatibility-mode to true in your PermissionsEx/config.yml.
I would recommend turning this off if you are having difficulty setting up permissions. The majority of issues is due to incorrect permissions.
If you don't understand any of this, just use the example below to turn off strict-mode and turn compatibility-mode on.
PermissionsEx/config.yml
permissions:
backend: file
backends:
file:
file: permissions.yml
superperms:
strict-mode: false
compatibility-mode: true</code></pre>