CraftBukkit Plugin Tutorials: PermissionsEx (15,000+ Views) (Recommended by the plugin author!)
37 diamonds
-
60,466Views, 32 today
- Comments
- Favorites
- Flag / Report
Get Embed Code
Level 44 : Master Narwhal
Posted 10/05/11 2:38:18 pm , last updated: 12/20/11 1:41:17 pm
10/05/11
I NO LONGER GIVE SUPPORT ON THIS BLOG POST, IT IS OUTDATED. I WILL BE WRITING A NEW BPERMISSIONS TUTORIAL IN THE NEAR FUTURE.
CraftBukkit Plugin Tutorials
Plugin: PermissionsEx
Version: 1.17
Author: t3hk0d3
Works with: CraftBukkit 1.0.0-R1
Download: Here
Download tutorials files (Important!): Here
This tutorial has been recommended by the plugin author himself, so you know it's gonna work!
Check out the mention in the post: Here
I noticed a lot of people in the forums asking for help with their servers permissions set up.I decided to give a full a tutorial as possible on using the most powerful and efficient permissions system available, PermissionsEx.This plugin, along with ModifyWorld and ChatManager (which both come with PermissionsEx), gives you complete control over what goes on in your server.
Before we get started, i suggest you head over to this link, and download 'NotePad++', the best text editor work working with YML files.If you do not want to download this program, that is fine, but NotePad++ will make your life 10 times easier, and it is highly recommended.You will also need to download the files i have provided using the link provided in the description above.
Installing PermissionsEx
Head to the link at the top of this post, and scroll down the post. Download the 'Latest Development Version'.Once downloaded, open up the .zip folder in either WinRAR or 7zip.You should have FIVE.jar files:
- PermissionsEx
- Permissions
- ModifyWorld
- ChatManager
- PermissionsEx-javadoc
Configuiring PermissionsEx
Once the server has finished loading, stop your server, and go to your plugins directory.You will now find there are four new folders, one for each of the .jar files your loaded into your server.First of all, go to the '/plugins/PermissionsEx' folder, inside you will find a 'config.yml' and a 'permissions.yml'.Ignore the 'config.yml', you do not need to do anything with this.
Now, open up the 'UsingPermissionsEx.zip' folder you downloaded from the link at the top of the page.Inside you will find a file called 'permissions.yml'. You now need to replace the 'permissions.yml' in the /plugins/PermissionsEx directory, with the one i have given you in the 'UsingPermissionsEx.zip'.
Now open it, and inside you will see i have already prepared the basic bones of the system for you.You may change the names of these groups as you wish, simply highlight the group name, and type out a new name. This will avoid messing up the spacing, causing the plugin to fail to load.
Now you may begin to configure the permissions, REMEMBER, never use tabs, as YML files dislike them, and it will cause your system to break.
Adding Permissions:
Each group/user has a permissions list, all nodes you want available to a player/group must be defined in their list.
For example:
groups:
Default:
default: true
prefix:
suffix:
permissions:
- modifyworld.chat
This allows any member in the group 'Default' to chat on the server.
This permission is needed for players to chat, as it is a part of ModifyWorld, which we will go into with more detail later.
You can also add negative permissions, that will disallow users access to that permission, for example.
groups:
Default:
default: true
prefix:
suffix:
permissions:
- -modifyworld.chat
This will disallow players in this group to use the servers chat. This is useful for not allowing users to speak until they have been promoted to a higher rank, that has access to 'modifyworld.chat', very useful for battling those spammers!
Permissions can be given on a per-world basis, which is great for multi-world servers. So let's say for example you have a creative world, and a survival world, and you want a group to be able to spawn items in creative, but not survival (using the plugin 'Essentials' as an example', you would write this as:
groups:
Default:
default: true
prefix:
suffix:
permissions:
worlds:
creative:
permissions:
- essentials.item
survival:
permissions:
By giving the permission on a per-world basis, rather than defining it in the groups main permissions list, the group can now spawn items in the creative world, but because you haven't defined the permission in the survival worlds permissions, they do not have the permission to spawn items when in that world.When giving permissions on a per-world basis, the world name must be the same as the name of the world folder found in your server directory. All group/user/world names are CASE-SENSITIVE.
Finally, permissions can be given on a per-user basis also, which will override the group they are in, and give them their own personal permissions, plus the groups. You can define these by doing this:
users:
PLAYERNAME:
group:
- Default
permissions:
- essentials.item
This means that even if the group they are in has not got the 'essentials.item' permission, this user will have permission to use it.
In the 'UsingPermissionsEx.zip' folder i have provided, there is a file named 'Permissions-Set-Up.yml'.This file goes into detail about what each section of the permissions.yml is used for, and how to set up your permissions system without any error.
You can add permissions to a group in-game or via the console by using the command:
/pex group [group] add [permissions]
Replacing '[group]' with a group name, and '[permission]' with a permission node.
Applying players to groups.
There are two easy ways to assign players to groups, either by manually adding a group name to a user in the users section, like so:
users:
YOURNAMEHERE:
group:
- Owner
Or by using in-game commands (providing you have permissions to, but for simplicity, i have added the correct permissions to the highest ranking group in the permissions.yml file i have given you), via a chat command or through the console., like so:
/pex user [playername] group set [group]
Replacing '[playername]' with a players name, and '[group]' with a group name.
Using ModifyWorld.
ModifyWorld is a plugin which comes included with PermissionsEx, and provides a number of different permissions which control the way your users behave on your server, for example whether they can speak, use Minecarts/Boats, or even use beds.All of these nodes can be given in the same way any other node can, be it global, per-world, or per-user.
The use of negative nodes are not needed, if you do not want a group/user to be able to access a permission, simply do not define it.There is a file in the 'UsingPermissionsEx.zip' folder that lists all of the different permission nodes linked with Modifyworld, how to use them, and what they control.
PLEASE NOTE: You MUST give the relevant ModifyWorld permissions to your users, if you skip this step and do not give any of the nodes, your users will not be able to speak, or do anything.
Please remember to go into the config.txt for ModifyWorld, and set 'Enable' to true.
Using ChatManager.
Please remember to go into the config.txt for ChatManager, and set 'Enable' to true.
ChatManager is a server chat plugin desinged for use with PermissionsEx, it allows your users/groups to have prefixes/suffixes assigned to their names, for example: [Server][Owner] Playername'.
I do not recommend running this alongside any other chat formatting plugin, as they could intefere with each other. I advise removing other chat plugins, such as HeroChat, iChat, etc, and just using ChatManager, as it works perfectly with PermissionsEx, and other plugins such as Factions that add a prefix.
Configuiring ChatManager:
Go to your /plugins/ChatManager directory, and open the 'config.yml'. Replace the text in that file with this set up i have created in advance, to give a result that will look like the example above:
chat-range: 100.0
display-name-format: '%prefix%suffix%player'
global-message-format: <%prefix|%suffix%player> &e%message
enable: true
message-format: <%prefix%suffix%player> %
messageranged-mode: false
Hit save.
Giving a group a prefix/suffix:
Go back to you /plugins/PermissionsEx, and open the 'permissions.yml' file again.
You will notice under each group name i have placed two sections named prefix, and suffix.Adding these prefixes and suffixes is incredibly easy, and can look however you like.
In the file, i have given an example under the Default group that looks like this:
groups:
Default:
default: true
prefix: '&6[&7Default&6] &f'
suffix: '&f'
permissions:
The '&6, &7, and &f' denote colours/colors.
So in actual fact, this prefix would be displayed as:
[Default]
Since we have given a suffix of '&f', this means anything after the code will be displayed as white, meaning the PLAYERNAME and MESSAGE.
We can also use the suffix as an extra prefix, by typing something like this:
groups:
Default:
default: true
prefix: '&1[&2Server&1]'
suffix: '&6[&7Default&6] &f'
permissions:
Which will be displayed as:
[Server][Default]
And because we added '&f' the text after the suffix will be white, like the PLAYERNAME and MESSAGE.
Everything Else.
This was just a quick, basic tutorial for those were confused by permissions, if i have confused you even more i apologise, and if i have missed something, or you run into errors, please comment on this blog, or send me a PM, and i will help you the best i can.
For a full list of commands/permissions, and more in-depth set-up guides relating to PermissionsEx, go to: http://forums.bukkit.org/threads/admn-dev-permissionsex-pex-v1-14-tomorrow-is-today-1240.18140/
Additional Details
| Tags: | Server, Bukkit, Plugins, Tutorial, BENNETTMAN, Permissionsex, Permissions |
| Credit: | t3hk0d3, Bukkit Logo Pixelart by: Eplemosen |
Update #5 - Reformatted! : 12/20/2011 1:41:17 pm12/20/11
I will be updating this tutorial for the latest version of PermissionsEx, with easier methods to achieve the things covered in this tutorial.
Also, we got over 10,000 views!
Update #4 : 12/09/2011 10:50:49 pm12/09/11
Use the tutorial I have provided in the link until I can fix this one.
Update #3 - Upcoming Updates : 12/09/2011 10:47:03 pm12/09/11
I will be updating the tutorial files to an easier to read/understand version.
The template files will also be updated to use the easier formatting that I use myself.
Update #2 - Version 1.16 : 11/09/2011 12:33:16 pm11/09/11
Update #1 - Recommended by t3hk0d3! : 10/06/2011 7:56:57 am10/06/11
Join us to post comments.
Comments : 168
1234 next »
1 - 50 of 168
1234 next »
1 - 50 of 168











Reply
Delete
NiteShadow7
Level 1
New Crafter
January 10, 2013, 4:34 pm
>> Minecraftcodes.info <<
Reply
Delete
3skandar
Level 7
Apprentice Engineer
December 7, 2012, 2:57 am
Reply
Delete
JAGGEZII
Level 1
New Miner
October 22, 2012, 12:59 am
Join my server!
pvp-riding-MCMMO-factions-shops and more!
89.255.132.113:25582
www.projectzedd.eu
Reply
Delete
BENNETTMAN
Level 44
Master Narwhal
October 22, 2012, 2:31 am
Or here: http://www.planetminecraft.com/forums/minecraft-servers.html?sid=d119648547b73c5789d73f763c03524c
Not on other peoples submissions.
Reply
Delete
Zakoschris
Level 52
Grandmaster Programmer
October 9, 2012, 5:17 pm
Reply
Delete
BENNETTMAN
Level 44
Master Narwhal
October 16, 2012, 3:27 am
It hasn't been updated in 10 months.
Especially unnecessary waste of time comments like this, any real point, or are you trying to be funny on a old submission that isn't monitored?
Reply
Delete
kraiku
Level 20
Expert Dragonborn
October 3, 2012, 9:58 pm
Reply
Delete
OObOO64
Level 1
New Miner
July 12, 2012, 11:40 am
108.163.251.100:25579
Reply
Delete
BENNETTMAN
Level 44
Master Narwhal
July 25, 2012, 6:02 am
Does anybody on this site have any grasp on courtesy these days?
There are sections for that, my OLD DEAD submission isn't one of them.
Reply
Delete
avianmax
Level 3
Apprentice Architect
June 4, 2012, 9:54 am
Reply
Delete
soccerrocks1
Level 1
New Explorer
May 28, 2012, 12:31 am
Reply
Delete
Hzabooboo
Level 22
Expert Pokemon
May 22, 2012, 4:47 pm
Reply
Delete
BENNETTMAN
Level 44
Master Narwhal
June 3, 2012, 12:57 pm
Reply
Delete
Hzabooboo
Level 22
Expert Pokemon
June 3, 2012, 1:36 pm
Reply
Delete
TheNikkoCraft
Level 5
Apprentice Miner
April 5, 2012, 2:23 am
Reply
Delete
Arrow2Knee
Level 1
New Explorer
March 14, 2012, 4:07 pm
Reply
Delete
kuchiyo
Level 10
Journeyman Modder
March 2, 2012, 5:33 am
default: false
permissions:
- '*'
- mcbans.*
inheritance:
- moderator
info:
prefix: '&4[Admin]&f'
build: true
suffix: '&f'
with this ingame: <kuchiyo>
Reply
Delete
Alt231
Level 41
Master Bunny
March 12, 2012, 2:51 pm
groups:
Admin:
default: true
info:
prefix: '&a[Admin]&f'
suffix: '&f'
build: true
inheritance:
- Mod The inheritance rank can be of any rank before it.
permissions:
- permissions.node
You need to configure it like that. if it is the first rank on the list it has to have
groups:
Admin:
default: true
info:
prefix: '&a[Admin]&f'
suffix: '&f'
build: true
inheritance
- Mod
permissions:
- permissions.node
Keep in mind that the prefix and suffix codes can be any colors. A link to every color is:
http://www.minecraftwiki.net/wiki/Classic_server_protocol at the bottom of the page.
Reply
Delete
Lemonhands
Level 1
New Miner
February 28, 2012, 10:09 am
http://pastie.org/3473397
Reply
Delete
PotatoCraft123
Level 1
New Miner
March 2, 2012, 3:42 pm
while scanning an anchor
in "<unicode string>", line 5, column 18:
suffix: '&f'
^
expected alphabetic or numeric character, but found "'"
in "<unicode string>", line 5, column 20:
suffix: '&f'
Reply
Delete
rudolf323
Level 17
Journeyman Explorer
February 27, 2012, 11:24 am
default : true is not working.
Reply
Delete
Alt231
Level 41
Master Bunny
March 12, 2012, 2:52 pm
Reply
Delete
littlehughes
Level 3
Apprentice Engineer
February 24, 2012, 12:29 pm
174 recipes
27 achievements
17:27:54 [INFO] Starting minecraft server version 1.1
17:27:54 [INFO] Loading properties
17:27:54 [INFO] Starting Minecraft server on *:25565
17:27:54 [INFO] This server is running CraftBukkit version git-Bukkit-1.1-R3-b1846jnks (MC: 1.1) (Implementing API version 1.1-R3)
17:27:56 [SEVERE] mapping values are not allowed here
in "<reader>", line 3, column 16:
default: true
^
Reply
Delete
Ga55246
Level 12
Journeyman Taco
February 19, 2012, 5:19 pm
Reply
Delete
Medic0987
Level 19
Journeyman Archer
February 18, 2012, 9:10 pm
"Dont have enough Permission for group Owner"
Like I cant promote myself up :/.
Reply
Delete
Ga55246
Level 12
Journeyman Taco
February 19, 2012, 3:34 pm
Reply
Delete
littlehughes
Level 3
Apprentice Engineer
February 11, 2012, 12:35 pm
17:32:19 [INFO] [PermissionsEx] sql backend registered!
17:32:19 [INFO] [PermissionsEx] file backend registered!
17:32:19 [INFO] [PermissionsEx] PermissionEx plugin initialized.
17:32:19 [INFO] [PermissionsEx] p2compat backend registered!
17:32:19 [INFO] [PermissionsCompat] Compatibility Layer Initalized!
17:32:19 [INFO] [PermissionsEx] Initializing file backend
17:32:19 [SEVERE] while scanning for the next token; found character 't' that cannot start any token initializing PermissionsEx v1.18 (Is it up to date?)
while scanning for the next token
found character 't' that cannot start any token
in "<reader>", line 7, column 1:
default: false
^
What do i do?
Reply
Delete
Tromania
Level 21
Expert Explorer
February 12, 2012, 6:38 am
Scroll down to line 7, you probably have a space between the next line or something.
Delete that space and you should be good.
Reply
Delete
Tromania
Level 21
Expert Explorer
February 12, 2012, 6:38 am
Scroll down to line 7, you probably have a space between the next line or something.
Delete that space and you should be good.
Reply
Delete
C4chaoskiller
Level 22
Expert Miner
February 11, 2012, 9:53 am
Reply
Delete
carrasp
Level 16
Journeyman Taco
February 8, 2012, 3:22 pm
SUB-ADMIN RANK, MODERATOR RANK AND PLEASE MAKE ADMIN GET ALL COMMANDS EXCEPT
FOR /STOP IF YOU DO YOU YOU GET ADMIN ON MY SERVER!!!!!!!PLEASE HELP I AM A NOOB!!!!!!!!
Reply
Delete
BENNETTMAN
Level 44
Master Narwhal
February 9, 2012, 8:11 am
Reply
Delete
carrasp
Level 16
Journeyman Taco
February 15, 2012, 1:58 am
Reply
Delete
BENNETTMAN
Level 44
Master Narwhal
February 15, 2012, 4:19 am
Be respectful.
Reply
Delete
Randomer9
Level 1
New Miner
February 8, 2012, 10:45 am
http://pastebin.com/tSpU8njB
Thanks
Reply
Delete
Randomer9
Level 1
New Miner
February 9, 2012, 11:09 am
I followed your post to the best of my abilities but my skills in notepad++ are non-existant.
Reply
Delete
BeefMamaFresh
Level 1
New Explorer
February 5, 2012, 2:05 pm
I am having two problems with My PermissionsEx. The problem is when I start my test server I get this,
18:49:51 [INFO] [Modifyworld] Loading Modifyworld v1.18.
18:49:51 [SEVERE] [Modifyworld] PermissionsEx not found, disabling
18:49:51 [INFO] [Modifyworld] Unloading Modifyworld v1.18.
18:49:51 [INFO] [Modifyworld] Modifyworld disabled!
18:49:51 [INFO] [Permissions] Loading Permissions v2.7.7.
18:49:51 [INFO] [PermissionsCompat] Compatibility layer enabled.
18:49:51 [INFO] [ChatManager] Loading ChatManager v1.18.
18:49:51 [SEVERE] [ChatManager] PermissionsEx not found, disabling
18:49:51 [INFO] [ChatManager] Unloading ChatManager v1.18.
18:49:51 [INFO] [ChatManager] ChatManager disabled!
18:49:51 [INFO] Server permissions file permissions.yml is empty, ignoring it
18:49:51 [INFO] Done (0.946s)! For help, type "help" or "?"
So my prefix and suffix specifications are not working because ChatManager is not loading I cant find out how to fix this problem. My second problem I am having is with promotion and demotion it is saying something about ladders? if anyone can help me that would be GREAT here is my permissions.yml
http://www.mediafire.com/?itq9lh3bzf974m4
you can also email me you will find my email in the ReadMeFirst.txt
Reply
Delete
BENNETTMAN
Level 44
Master Narwhal
February 7, 2012, 4:48 am
Reply
Delete
BeefMamaFresh
Level 1
New Explorer
February 7, 2012, 2:59 pm
Here is the link: http://pastebin.com/djpppt35
Reply
Delete
BeefMamaFresh
Level 1
New Explorer
February 7, 2012, 2:55 pm
Reply
Delete
BENNETTMAN
Level 44
Master Narwhal
February 8, 2012, 1:08 am
http://pastebin.com/MR2RqME0
Reply
Delete
BeefMamaFresh
Level 1
New Explorer
February 8, 2012, 4:47 pm
Reply
Delete
BeefMamaFresh
Level 1
New Explorer
February 10, 2012, 10:23 am
Reply
Delete
n3wholy
Level 2
Apprentice Crafter
January 31, 2012, 11:26 pm
chat-range: 200.0
display-name-format: '%prefix%player%suffix'
global-message-format: <%prefix%player&f%suffix> %message
enable: true
message-format: <%prefix%player&f%suffix> %message
ranged-mode: false
Reply
Delete
BENNETTMAN
Level 44
Master Narwhal
February 2, 2012, 4:21 am
Reply
Delete
lastcresendo
Level 1
New Miner
January 28, 2012, 5:29 pm
http://pastie.org/3273591
Reply
Delete
carls1976
Level 1
New Miner
January 16, 2012, 2:12 am
12:10 PM [SEVERE] Error occurred while enabling PermissionsEx v1.18 (Is it up to date?): null
12:10 PM [SEVERE] [ChatManager] PermissionsEx not found, disabling
12:10 PM [SEVERE] [Modifyworld] PermissionsEx not found, disabling
Reply
Delete
Mythbusters
Level 1
New Miner
January 23, 2012, 4:46 am
Same here!
Also, when someone exits the server the .cmd totally freaks out!
Please help
Reply
Delete
Mythbusters
Level 1
New Miner
January 23, 2012, 4:48 am
P.S. I'm using minecraft 1.1 bukkit un-recommended build
Reply
Delete
sanzyyyy
Level 1
New Miner
January 13, 2012, 1:46 pm
Reply
Delete
pmccf
Level 1
New Miner
January 6, 2012, 2:10 am
Reply
Delete
BENNETTMAN
Level 44
Master Narwhal
January 8, 2012, 2:53 am
Reply
Delete
pmccf
Level 1
New Miner
January 11, 2012, 7:23 am
Reply
Delete
BENNETTMAN
Level 44
Master Narwhal
January 11, 2012, 10:27 pm
Reply
Delete
pmccf
Level 1
New Miner
January 8, 2012, 5:20 am
Reply
Delete
demolitionforces
Level 1
New Miner
January 4, 2012, 5:24 pm
Reply
Delete
PenguiN_x
Level 50
Grandmaster Pegasus
January 4, 2012, 3:01 am
Reply
Delete
BENNETTMAN
Level 44
Master Narwhal
January 4, 2012, 3:08 am
Reply
Delete
PenguiN_x
Level 50
Grandmaster Pegasus
January 4, 2012, 3:17 am
Reply
Delete
BENNETTMAN
Level 44
Master Narwhal
January 4, 2012, 3:19 am
Reply
Delete
PenguiN_x
Level 50
Grandmaster Pegasus
January 4, 2012, 3:26 am
Reply
Delete
BENNETTMAN
Level 44
Master Narwhal
January 4, 2012, 3:31 am
There may be a plugin that reads PermissionsEx groups, and applies it to the tab list, but PermissionsEx can't do it, it is simply a permissions handler.
Reply
Delete
PenguiN_x
Level 50
Grandmaster Pegasus
January 4, 2012, 3:35 am
Reply
Delete
PenguiN_x
Level 50
Grandmaster Pegasus
January 4, 2012, 3:49 am
Reply
Delete
BENNETTMAN
Level 44
Master Narwhal
January 4, 2012, 3:55 am
I don't know what plugin it will be, if it even exists.
Reply
Delete
Crabmechanic
Level 1
New Miner
January 2, 2012, 9:40 pm
If you open it with Notepad ++ It shows allot of red areas, and then, if you open it with, http://yaml-online-parser.appspot.com/ it will say all the red spots on Notepad++ Are wrong :/.. If you could fix em for me, or add me on Skype, and help me out that'd be great! My username is TheCrabMechanic
Reply
Delete
BENNETTMAN
Level 44
Master Narwhal
January 3, 2012, 12:46 am
That should work.
Reply
Delete
Crabmechanic
Level 1
New Miner
January 3, 2012, 6:14 pm
Thats my most recent one, and for SOME REASON, I got the suffix to show up, BUT, I cant promote my self to Owner, My IGN is TehGrizzlyBear And when ever I type /pex promote TehGrizzlyBear TG, TG is the ladder, it says I am not a high enough rank for that..so..AM CONFUSED, Anyway, please help me!!
Reply
Delete
Crabmechanic
Level 1
New Miner
January 3, 2012, 10:26 am
http://pastie.org/3120569
EDIT: Im also not using Chat Manager..Am I Supooused to?
Reply
Delete
Crabmechanic
Level 1
New Miner
January 3, 2012, 10:26 am
Reply
Delete
BENNETTMAN
Level 44
Master Narwhal
January 4, 2012, 2:51 am
Of course you are meant to use Chat Manager, and don't use the promote commands, just use the commands for setting the group.