Example Setup
Getting Started
After you've installed the plugin (just plop it into your plugins folder, and restart your server), Privileges will generate a series of files. config.yml, groups.yml, and users.yml.
You can edit these files by hand, but Privileges has an incredibly powerful command-based editing system that can make your life much easier.
The default groups (and their default rank) are as follows:
- default (rank 1)
- user (rank 2)
- mod (rank 3)
- admin (rank 4)
- owner (rank 100)
Keep in mind that all of these ranks and group names can be changed to whatever you want.
Setting a User's Group
To assign a user to a group, you can use the following command: /priv group set [user] [group] To promote a user (to the next higher rank based on their current group's rank): /promote [user] To demote a user (to the next lower rank based on their current group's rank): /demote [user]
/pgs krinsdeath admin
This sets krinsdeath to the group admin.
/promote krinsdeath
With the default files, this will promote krinsdeath to owner.
/demote krinsdeath
With the default files, this will demote krinsdeath back to admin.
Modifying a Group's permissions
There are several commands that can be used to modify a group's permissions. To set a permission: /priv group perm set [group] [[world:]permission.node] [true|false] To remove a permission: /priv group perm remove [group] [[world:]permission.node]
/pgps admin teleport.admins true
This command will set the node teleport.admins to true for the group admin.
/pgps admin world_nether:teleport.admins false
This command will set the node teleport.admins to false for the group admin on the world world_nether. This will override the previous value only when the admin is on the world_nether world.
/pgpr admin world_nether:teleport.admins
This command will remove the teleport.admins node that you just set to false for admin on world_nether. It will no longer override the global value of true.
Comments