Plugin Help PermissionsEx, I need some assistance

Discussion in 'Plugin Help/Development/Requests' started by Jmac280, Apr 13, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Jmac280

    Hello,
    I have just finished configuring the Permissions.yml to my liking. However for some reason (after I put a certain staff member in a certain rank) the permissions aren't working for the rank. I have a feeling it may be a slight issue with my configuring that I cannot see. That or something else, I will post a pastebin for now of my Permissions.yml and if you need anything else just let me know. Its greatly appreciated.



    Pastebin:
    http://pastebin.com/EqjG0NRc



    Thank you
    -Jmac280
     
  2. Offline

    ForsakenRealmz

    @Jmac280 I ran your permissions.yml through a yaml parser, and it did not find any errors so you're good in that part.

    Would you be able to be slightly more descriptive with what is going wrong? I understand that when you add a staff member to a group, then that groups permissions no longer work? In what way do they not work... You can do absolutely nothing, or the player do can everything?

    Also, here is a link to PermissionsEx inheritance tree. It will trim your 1,100 lines of permissions to probably 150.
    https://github.com/PEXPlugins/PermissionsEx/wiki/Advanced-permissions-setup#pex-inheritance-tree
     
  3. Offline

    Jmac280

    @ForsakenRealmz The player that I add to the group does not get the permissions of which that group has. Ex. Say you were the regular rank and I promoted you to let's say Moderator(I'd never do that right away) you would not get the permissions of the group moderator. I've tried once I added the person removing them from the old rank which could be an issue but that wasn't it. However to directly answer your question no the person does not get any of the permissions.

    Thank you
    -Jmac280
     
  4. Offline

    ForsakenRealmz

    @Jmac280 Hey, is there by any chance you could implement the inheritance part of PermissionsEx into your code? Like I stated above, it would make your yaml file a tenth of the size it already is. It would make it much easier for you to go through, and anyone helping you.

    Here are some things I would suggest trying to fix your error though...
    - Use /pex user {User} group set {Group}, instead of /promote
    - Even though they practically do the same thing, you're going to get an error like this if you try to promote someone who does not have a group already initialized.
    Console error message (open)

    [23:04:58 INFO]: Promotion error: User are not in this ladder
    [23:04:58 ERROR]: [PermissionsEx] Ranking Error (console > d2157593-5d96-4c30-91
    b2-8e5bf8c9099f/MrYobob94): User are not in this ladder
    30 minutes later since beginning of post...
    I went ahead and changed your YAML to include inheritance. You'll notice that it's almost 1,000 lines shorter. You may want to look through it again to see if I missed anything. If you still don't understand inheritance just message me in this topic, and I'll gladly explain it to you.

    Your new permissions.yml:
    http://pastebin.com/sMX6ZTEc

    This is 100% working for me. I deop'ed myself, set myself as "Moderator" with /pex user ForsakenRealmz group set Moderator. Then changed myself to 'Un-Registered' and then to 'Regular'. I tried to use /promote on a user that is not ranked, and was given the error I posted above in the spoiler. This SHOULD work for you now... If it still does not then I'll tell you what I'd do then...
     
  5. Offline

    Europia79

    @Jmac280

    You permissions.yml had tabs in it several times at the end of "- essentials.spawn\t" but the "\t" is invisible to the eye.

    The nodes "essentials.help.[pluginname]" and "essentials.help.[pluginname].[command]" look highly suspicious... What is this ?

    Also, I don't see any negation nodes in your file. These are very important. At a very minimum, I would suggest that you negate "bukkit.command.stop"... I have had young players who have tried to stop the rain by running the "/stop" command... And as you guessed it, they stopped the server instead.

    Here's my pex file if you wanted to get an example of negation nodes:
    http://hastebin.com/dalewajipu.sm

    Good luck!
     
Thread Status:
Not open for further replies.

Share This Page