Blogs Tutorial

PermssionsEX Tutorial

  • 4k views 0 today
  • 12
  • 2
  • 19
Dimitri2012
Lvl 43Master Cake
69
I have noticed many people are having trouble with thir permissions, once you get your head round it its very easy!


Stuff you need:


Notepad++: LINK


PermissionsEX: LINK


SetRankPEX (Optional): LINK


YAML Parser: LINK





Remember YAML does not like tabs so don't use them.





NB: the permissions file is in the PermissionsEX folder in your plugins folder.





First:

Groups



A group is basically the rank, it contains all the permission nodes and the prefix (think [Admin] before the name), the suffix (opposite of a prefix). Example:





Admin:


prefix: '&cAdmin&f'


suffix: ''


permissions:


- '*'


inheritance:


- Moderator





Break-Down:


Admin: - The group name, simple.


prefix: '&cAdmin&f' - What will be before their name in chat ( [Admin] ) the '&c' and '&f' is the colour codes &c is red and '&f' Stops the colour. Colour codes at the bottom of this guide.


suffix: '' - What comes after the name


permissions: - The permissions '*' means all the permissions (More info down)


- '*'


inheritance: - What to inherit permissions from e.g. You want the Builder rank to get permission from the Guest rank.


- Moderator






Nodes



The node is the actual permission, as said earlier '*' is all the nodes you could also do - essentials.* for all the Essentials nodes. BEWARE sometimes '*' can muck it up don't over use it. You list the nodes like this:


permissions:
- bukkit.command.plugins
- essentials.nick
- essentials.me
- -factions.create (notice the - -factions.create a '-' before the node takes away the command)
- essentials.tpa
- essentials.tpahere
- essentials.tpaccept
- essentials.back
- essentials.back.ondeath
- chatmanager.override.ranged
- chatmanager.chat.color



These are the Permission for my Trusted rank.


As you can see the permissions start with '-' then a space then the node. The nodes for you'r plugins can usually be found on the BukkitDev page or just Google '[Name of plugin] nodes' .


If you want to see here is my file:


NOTE: Do not steal, use for learning, otherwise you won't learn.


My Permissions File

My Permissions File
User:
default: true
prefix: '&eUser&f'
suffix: ''
permissions:
- essentials.help
- turnstile.open
- essentials.home
- essentials.sethome
- essentials.spawn
- essentials.motd
- essentials.rules
- essentials.sethome
- essentials.balance
- essentials.pay
- essentials.sell
- essentials.worth
- essentials.afk
- essentials.ignore
- essentials.suicide
- essentials.msg
- showcase.buy.infinite
- factions.chat
- factions.home
- factions.join
- factions.leave
- factions.power
- factions.show
- factions.help
- factions.map
- buycraft.buy
- lwc.protect
- scs.create.buy
- scs.create.sell
- scs.use
- -essentials.kit
- -factions.create
- essentials.tpaccept
- essentials.signs.use.warp
- essentials.warp.*
- -mcmmo.commands.ptp
Trusted:
prefix: '&2Trusted&f'
suffix: ''
permissions:
- bukkit.command.plugins
- autocraft.transport
- essentials.nick
- essentials.me
- factions.create
- essentials.tpa
- essentials.tpahere
- essentials.tpaccept
- essentials.back
- essentials.back.ondeath
- chatmanager.override.ranged
- chatmanager.chat.color
- -mcmmo.commands.ptp
inheritance:
- User
Moderator:
prefix: '&5Moderator&f'
suffix: ''
permissions:
- essentials.tp
- essentials.tphere
- bukkit.command.gamemode
- bukkit.command.time.*
- bukkit.command.say
- bukkit.command.kick
- bukkit.command.ban
- bukkit.command.unban
- essentials.tree
- essentials.afk.others
- essentials.backup
- essentials.invsee
- essentials.mute.exempt
- essentials.setjail
- essentials.jails
- essentials.chat.spy
- essentials.jail.exempt
- essentials.tempban
- essentials.weather
- essentials.ban
- essentials.unban
- lwc.mod
- factions.*
- essentials.gm
- bukkit.command.gamemode
- essentials.gamemode
- chatmanager.override.ranged
- chatmanager.chat.color
- bukkit.command.ban.player
inheritance:
- Trusted
Donator:
prefix: '&eDonator&f'
suffix: ''
permissions:
- bukkit.command.version
- bukkit.command.plugins
- essentials.nick
- essentials.me
- factions.create
- blockhat.hat
inheritance:
- Trusted
SubAdmin:
prefix: '&5Moderator+&f'
suffix: ''
permissions:
- worldedit.*
inheritance:
- Moderator
Admin:
prefix: '&cAdmin&f'
suffix: ''
permissions:
- -essentials.heal
- -essentials.give
- -essentials.god
- -essentials.feed
- -essentials.enchant
- -essentials.repair
- -bukkit.command.teleport
- -bukkit.command.xp
- '*'
inheritance:
- Moderator




Great! So now your permissions are all fine and dandy, what about ranking people up?





Users





Since this tutorial is aimed at PermissionEX we will be using the commands for it.


To rank someone up there are two ways you can do this: In game: Type '/pex user [user's name] group set [Group name]'. Done! In the file:


You will see this at the bottom of you file:


users:


Underneath here is where your users go e.g.


users:
dimitri2012:
group:
- Admin



Some fine person has also made a plugin for shortening the command its is called SetRankPEX. LINK.


Simples.


Troubleshooting





Most likely first time around it wont work so, put your permission through a YAML parser. Also don't forget that YAML does not like tabs so convert them to spaces. Make sure you are using Notepad++.


Other Stuff





So you want fancy prefixes? First off you will need a plugin like iChat or Chatmanger which comes with PEX.


And now for the codes:

Codes


&4 Red

&c Rose

&6 Gold

&e Yellow

&2 Green

&a Light green

&b Light blue

&3 Cyan

&1 Navy

&9 Blue

&d Light purple

&5 Purple

&f White

&7 Lightgray

&8 Gray

&0 Black




Any further questions? please leave a comment.


Don't forget to Diamond and Favourite!


~Dimitri2012

3 Update Logs

Update #3 : by Dimitri2012 03/25/2012 1:15:15 pmMarch 25, 2012 @ 5:15 pm UTC

Fixed link
LOAD MORE LOGS

More like this

  Have something to say?

TenaciousEz
03/26/2013 10:53 am
Level 7 : Apprentice Modder
Thanks so much!
1
Jagay3
03/07/2013 9:41 am
Level 1 : New Miner
I have PermissionEx but when i try to do so my guest rank can't do /plugins it wont work they can still do it! How can i do so they can't? :)
1
Dimitri2012
03/08/2013 11:57 am
Level 43 : Master Cake
Try: - blah.blah
1
Jagay3
03/08/2013 2:12 pm
Level 1 : New Miner
what shod that do?
1
Dimitri2012
03/09/2013 6:32 am
Level 43 : Master Cake
Make it so the guest rank cant use that permission.
1
Jagay3
03/15/2013 10:42 am
Level 1 : New Miner
i wrighted - blah.blah in the permissionex but it diden't changed i can still do /plugins
1
Dimitri2012
03/20/2013 3:22 pm
Level 43 : Master Cake
I didn't mean write blah.blah, I meant write your permission there. Sorry that confused you.
1
Undefinedmaster
07/30/2012 8:33 pm
Level 8 : Apprentice Explorer
Another awesome post. Thanks.
1
albinorhino911
06/29/2012 6:06 am
Level 1 : New Miner
how about addding how to give permission for factions. i played on your bordercraft server really liked the way the permissions were with the whole faction deal
1
Dimitri2012
06/29/2012 10:25 am
Level 43 : Master Cake
At least someone liked the permissions! Do make it do a group can't make a faction put:- -faction.create
1
albinorhino911
07/02/2012 6:06 am
Level 1 : New Miner
i got it ty but it didnt take as long as it did to reply.
1

Welcome