Set permission

Description

Set a permission to the subject. The subject will then be able to use the permission.

Permission

permissionmanager.commands.subject.set.permission

Command

/pm <collection> <subject> set permission <permission> [-s <server>] [-w <world>] [-t <seconds>]

Options

  • -s: The server where the subject will have the permission.
  • -w: The world where the subject will have the permission.
  • -t: How many time the subject will have the permission. The time is in second.

Examples

Set a permission to a player.
/pm user player_name set permission permission.to.set

Set a permission to a group.
/pm group group_name set permission permission.to.set

Set a permission to the default subject.
/pm default default set permission permission.to.set

Set a permission for 10 minutes.
/pm <collection> <subject> set permission permission.to.set -t 600

Set a permission for the world DIM1.
/pm <collection> <subject> set permission permission.to.set -w DIM1

Set a permission for a server. Only works if you have more than one server connected to your database.
/pm <collection> <subject> set permission permission.to.set -s server_name

Set a permission for the server test.permissionmanager.com in the world DIM-1 for 2 minutes.
/pm <collection> <subject> set permission permission.to.set -s test.permissionmanager.com -w DIM-1 -t 120