Jobs

Permissions

Player Permissions

By default, Jobs should grant the appropriate permissions to users out of the box.

You may also disable jobs in specific worlds with jobs.world.worldname: false, or disallow certain jobs with jobs.join.jobname: false

  jobs.*:
    description: Grants access to all Jobs commands
    children:
      jobs.admin: true
  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.browse: true
      jobs.command.stats: true
      jobs.command.admin.stats: true
      jobs.command.join: true
      jobs.command.leave: true
      jobs.command.info: true
      jobs.command.playerinfo: true
      jobs.command.fire: true
      jobs.command.employ: true
      jobs.command.promote: true
      jobs.command.demote: true
      jobs.command.grantxp: true
      jobs.command.removexp: true
      jobs.command.transfer: true
      jobs.command.reload: true
  jobs.command.browse:
    description: Grants access to the browse command
    default: true
  jobs.command.stats:
    description: Grants access to the stats command
    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.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.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

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
    ...

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

Facts

Date created
Dec 25, 2011
Last updated
Jun 20, 2013

Author