PermissionsEx: [default] Prefix

Discussion in 'Bukkit Help' started by ===RhysyB===, Nov 7, 2014.

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

    ===RhysyB===

    Hi guys, I have recently changed permission plugin from bPermissions to PermissionsEx and I have had a lot of my errors fixed however with a new plugin is going to come with new errors so if you guys could help me with mine that would be extremely helpful! Right so onto the error; I have setup my prefixes and they all work but infront of the prefix it says [default] infront of the prefix so it looks something like this:
    [default] [Group Prefix][Username]: [Message]

    I want all of this apart from the default part. I have probably done something wrong in the permissions somewhere because I am a big noob >.< but if somebody could find out the problem and make me aware of it that would be amazing.

    Files

    Config: pastebin.com/rbtS0LBQ
    Permissions: pastebin.com/BqLmUQuS
    Plugins: pastebin.com/6in8AphE
    Essentials Config: pastebin.com/H16s5tba
     
  2. Offline

    OTF Catastrophe

    Hi @RhysyB great to see you went with PEX, its a shame youre still having errors even with a new plugin. This way isnt really how you should do it but it is a way of doing it:

    Under prefix put - "prefix: '[default] (Group Prefix)' and color it however youd like, by doing this it should come out like this:

    (Made from how your member group looks:)
    prefix: '[default] &7[&9Member&7]'
     
  3. Offline

    ===RhysyB===

    OTF Catastrophe sorry, I don't really understand are you saying I should put [default] in when I set the groups prefix?
     
  4. Offline

    OTF Catastrophe

    Yes, is that not what you want? If not give me an example of what you mean, like replace all the stuff of the way you want a specific rank to be like.
     
  5. Offline

    ===RhysyB===

    OTF Catastrophe Right now the chat is appearing as:

    [default][GroupPrefix][Name]: [Message]

    I want it to appear as:

    [GroupPrefix][Name]: [Message]
     
  6. Offline

    enrique3120

    I think it can be caused by another plugin, can you publish a list of your plugins?

    And here, some advices for you (^^):

    Is not necessary putting all the time a 'default: false', you can omit this.

    Also you can modify the file putting a
    Code:
    options:
          rank: 'x'
    (x = the rank number you want to give to this group)

    with this in all th groups, you can use the '/pex promote x' or '/pex demote x' (x = name of the user you want to promote/demote) and I think it will more easier for you than writting all the time '/pex user x set group x' here you have an example (my permissions.yml).
    Using my permissions.yml, if you type '/pex demote enrique3120', enrique3120 will pass of being 'Tecnico' to 'Hatministradora'.
    1 is the highest rank and the lowest rank is the lowest number you can imagine.
    Using '/pex promote x' (x = name of the user you want to promote/demote) the player will pass to the nex group with a bigger rank number and using the '/pex demote x' (x = name of the user you want to promote/demote) the user will pass to the next group with a lower rank number.

    I hope you understand all the advices :')
     
  7. Offline

    ===RhysyB===

    enrique3120 Plugin list has been linked in the first post.
     
  8. Offline

    enrique3120

    It can be the ColoredName plugin.
     
  9. Offline

    ===RhysyB===

    enrique3120 I added the rank level and now it is not displaying any prefix at all apart from default I have updated the permissions file and if you could help me out that would be awesome!

    enrique3120 removing ColoredName didn't work default is still being displayed.

    enrique3120 also when I type /plugins PermissionsEx comes up in red.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
  10. Offline

    AGC-Intra


    As I've said before changing your permissions plugin will do little for you if you dont understand basics.
    Your plugin shows up red because its not even loading.
    That is because you have a basic break in your permissions yml file.
    I understand others may do your work for you here, but please just read and learn some basics and you won't be having such issues and posting here so much.
    ie: YAML Tutorial.

    Recall my reply to you with your last permission issue.
     
  11. Offline

    JaguarJo

    ===RhysyB=== Plugins that could be affecting your chat formatting would be EssentialsChat and TownyChat. Check the configs for those to see if they need any changes made to reflect how you want chat to show up. PEX itself doesn't directly handle chat formatting, so anytime you have an issue with the order things are in chat, look to your other plugins.

    Which version of PEX are you using? As of version 1.22, the formatting has been changed a little for the permissions.yml file. Your formatting appears to be consistent with the older versions of PEX, so if you're using a newer one, you'll need to change some things.
     
  12. Offline

    ===RhysyB===

    JaguarJo I believe I am using 1.20.4 am I using the right formatting? Because that might be why my plugin is failing to load. Thanks a lot btw because you seem to help me all the time and you're the one that really helps me with my problems.
     
  13. Offline

    JaguarJo

    ===RhysyB=== That version should be working with the formatting you've got.

    After plugging your file into a YAML parser though, I did notice a couple of typos that could be causing you problems. On line 414, you forgot to put the closing ' on your prefix. You also forgot the closing ' to the prefix on line 496. Adding those two things in, makes the file work in the parser, so it should load for you after that.
     
  14. Offline

    1Camer0471

    are you using multiverse? if so, it could be putting [default] infant of your name because that is the world name.
     
  15. Offline

    ===RhysyB===

    JaguarJo Thanks my prefixes is now working and my PermissionsEx is now loading! However the default is still there I have disabled every other plugin that may be interfering with chat and left it to essentials however it is still appearing with [default] before the prefix however it is now grey. I will leave a link to my essentials config in the first post. 1Camer0471 I am not using Multiverse so that cannot be the problem.
     
  16. Offline

    JaguarJo

    ===RhysyB=== Your potions kit is missing the item amount numbers beside all of the item IDs. Also, on line 979, you have it set to give newbies a tools kit when they first join the server, but there is no kit by that name defined in the kits section.

    I don't see any parsing errors and your chat section looks good...so I'm not really sure what is causing that [default] to show up in chat. I would fix those kit problems though, just in case they are making the config fail to load properly.
     
  17. Offline

    ===RhysyB===

    JaguarJo so my server is screwed? Do I get a different permission plugin? If so if you could recommend one? Thanks for all your help!
     
  18. Offline

    JaguarJo

    ===RhysyB=== I wouldn't say it is screwed, we just need to keep trying to figure it out. Is the [default] thing still showing up after fixing the Essentials config and restarting the server?
     
  19. Offline

    ===RhysyB===

    JaguarJo I don't have access to a computer right now, but when I do I will let you know the outcome.

    JaguarJo The [default] prefix is still appearing with the config fixed :(

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
  20. Offline

    ===RhysyB===

    JaguarJo I have figured out what it is doing, from my PermissionsEx permission file, the first rank is called default, I renamed this rank to member and the prefix changed from [default] to [member]! Now I know what it is doing but how do I stop it from doing it? So happy to finally figure out what it's doing, still got a problem though!
     
  21. Offline

    JaguarJo

    So what does your chat look like now? Are you getting double prefixes? I'm trying to remember if {DISPLAYNAME} in the Essentials config automatically includes the PEX prefix along with the playername or not. If it does, then that could be what is duplicating prefixes.

    Just looked it up: http://wiki.ess3.net/wiki/Chat_Formatting
    Yeah, I think your chat formatting in the group formats section might be what is adding the extra prefixes. {DISPLAYNAME} is probably adding in the prefix that you've got defined in the permissions file. Oh, and also check to make sure that when you changed that default rank to member, that you made it Member with a capital M, since that's how you did it in the config and capitalization needs to match on that part.
     
  22. Offline

    ===RhysyB===

    JaguarJo Yeah I made it a capital 'M' so what do I change {DISPLAYNAME} to?
     
  23. Offline

    JaguarJo

    ===RhysyB=== Since you've already got the group prefixes in the PEX file and those are apparently included with {DISPLAYNAME}, I think all you need to do is remove the group name from your group formats in the Essentials config so it would look like this:
    Code:
      group-formats:
        Member: '&7{DISPLAYNAME}&7: &7{MESSAGE}'
        Supporter: '&7{DISPLAYNAME}&7: &7{MESSAGE}'
        Supporter+: '&7{DISPLAYNAME}&7: &7{MESSAGE}'
        Sponsor: '&7{DISPLAYNAME}&7: &7{MESSAGE}'
        Twitch: '&7{DISPLAYNAME}&7: &7{MESSAGE}'
        YouTube: '&7{DISPLAYNAME}&7: &7{MESSAGE}'
        VIP: '&7{DISPLAYNAME}&7: &f{MESSAGE}'
        Trial-Moderator: '&7{DISPLAYNAME}&7: &c{MESSAGE}'
        Moderator: '&7{DISPLAYNAME}&7: &c{MESSAGE}'
        Admin: '&7{DISPLAYNAME}&7: &6{MESSAGE}'
        Owner: '&7{DISPLAYNAME}&7: &6{MESSAGE}'
    Let me know if that works or not; I've got one last idea if it doesn't.
     
  24. Offline

    ===RhysyB===

    JaguarJo Didn't work :I Although the prefixes still stayed which is great, your other idea was?
     
  25. Offline

    JaguarJo

    ===RhysyB=== So the other idea was changing the setting on Line 32 of the Essentials config from true to false. Just to see how or if that affects your chat labels.
    Code:
    # Disable this if you have any other plugin, that modifies the displayname of a user.
    change-displayname: true
    to
    Code:
    # Disable this if you have any other plugin, that modifies the displayname of a user.
    change-displayname: false
    My thought is that this setting should remove the PEX prefixes and then you would only be left with whatever is set in your group-formats section of the Essentials config.


    And just as a side question: do you still have TownyChat or did you remove that one when you were testing things?
     
  26. Offline

    ===RhysyB===

    JaguarJo I have removed TownyChat and disabled the setting in the essentials config and all the prefixes have gone; apart from [default] -_- does this mean it is PermissionsEx causing this problem?
     
  27. Offline

    JaguarJo

    If that [default] thing is still showing up after disabling the setting in essentials, then it is not being caused by PermissionsEx. PEX does not handle chat on its own, it needs a chat plugin to hook into for its prefixes to even work. Your chat plugin is EssentialsChat. With that essentials setting turned off, it's like telling PEX to turn off its chat prefixes and only use whatever you've got defined in the essentials config.

    ...I'm not really sure where the [default] is coming from now. You don't have Multiverse, do you? Sometimes that will add a world name to the front of chat. I didn't see it in your plugins list though, so that's probably not it.

    At this point, you can probably change that essentials config setting back to true, since at least then you had your group prefixes showing up. I'll keep trying to think of what else might be adding an extra prefix into the mix; there must be something obvious that we're overlooking.
     
  28. Offline

    ===RhysyB===

    JaguarJo Ok thanks, keep in mind that when I changed the rank name it changed the [default] prefix to whatever I set it.
     
  29. Offline

    JaguarJo

    Yes, but that was before you had changed the essentials config settings, when essentials and PermissionsEx were sharing prefixes with each other. Changing the config should have turned that part off, so any prefix you saw at that point should have been coming entirely from your essentials group-formats section. Edit to add clarification: meaning that where {DISPLAYNAME} used to show the users group prefix and their username, now it would only show their username since the PEX prefix was turned off by essentials.
     
  30. Offline

    ===RhysyB===

    JaguarJo OOO! Big Find! I changed the default group name to 'Member' and it changed chat to '<[Owner]RhysyB> test' However this is still not what I want, I want '[Owner]RhysyB: test'
     
Thread Status:
Not open for further replies.

Share This Page