Question Pex Groups Priority

Discussion in 'Plugin Help/Development/Requests' started by Mitchell_J8, Nov 25, 2015.

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

    Mitchell_J8

    Hello! I've recently opened a new KitPvP server, and have been having to have players make donations manually to my paypal instead of using buycraft because:

    Before setting up buycraft, my "Admin" purchased a rank called "Shadow".
    Shadow prefix overran the Admin prefix, and I couldn't figure out a way to fix it.

    Also, is there a plugin/option to change a groups chat color, I can't get mine (Owner) or defaults change anything other than white, thanks!
     
  2. Offline

    Scorpionvssub

    For pex prefixes u need a chat plugin such as essentials then go into pex do prefix: '&4[owner] under options: that will make [owner] dark red, Second, not sure if there is a simpilar way of giving a priority but i reckon he was admin then u set him to shadow? so try to reverse that first shadow then admin should show admin instead.(not sure how it works but ive done that with mods), ELSE if hes the only admin just make that rank inherit the shadow rank and he will have all shadow options. OR u can make the admin via his name inherit a group
     
  3. Offline

    Mitchell_J8

    Pex thing was iffy on the help, but for the pex priority not at all, thanks for replying though!
     
  4. Offline

    oceantheskatr

    With both PEx and GroupManager you can do something called "adding subgroups". Adding subgroups to a player allows them to maintain their current group as their primary group, whilst still inheriting the permissions from other groups.

    In your example, an admin purchased "Shadow". You then ran the command pex user <name> group set Shadow. This caused the admin's main group to be changed to "Shadow". What you want to do instead is add "Shadow" as a subgroup to the admin. This will allow them to maintain admin as their main group, whilst inheriting the permissions from "Shadow". The command is very similar to the previous one. It is pex user <name> group add Shadow. Notice that "set" is now "add". This "adds" the group to the player, rather than changing their primary group to "Shadow".

    I hope I explained this well enough :)
     
  5. Offline

    Scorpionvssub

    @oceantheskatr While ur version still works sometimes though when doing this the prefix from the group you add is shown rather then the 1 he had which is strange X)(kinda like what i explained in my attempt of help) XD
     
  6. Offline

    oceantheskatr

    It would work every time...
    Then you're doing something wrong, as it should show only the prefix & suffix from their primary group. Subgroups only give access to the permissions of the group.
     
  7. Offline

    Mitchell_J8

    @oceantheskatr Awesome, I will test it out tonight, but one thing I need to know is what commands are executed if a player isn't a rank, and donates. (I need this information for buycraft executed commands on purchase)

    /pex user <player> group set <Shadow>

    And if a high donator / staff donate for a rank below them it would be what to determine what group is primary?
     
  8. Offline

    oceantheskatr

    Their primary group will either be the default group or a staff rank any ways, so any donation rank they get can be "added" instead. In your Buycraft settings, you're able to set sections up so that they can't buy ranks below the one they've already purchased.


    A primary group is simply the one they're "set" as, which by default is your "default" group. It can only be changed with the "set" command, and no matter what is "added" to them, their primary group will stay the same.
     
  9. Offline

    Mitchell_J8

    Well thats the problem, if someone donates their primary group can't stay, unless they're Staff. It would be like me buying "Donator" rank and everyone would see me as a "Default" group. I need to find out how to order the group from the most to least priority.. Because players will be allowed to buy ranks below them, and if they buy a higher rank it should set the donator to the high group, and when they donate for a lower rank it should stay as the higher one, It sounds like a simple configuration file of seeing what group is higher than others but it seems its much more complicated.
     
  10. Offline

    Firestar311

    @Mitchell_J8 I do not know much about BuyCraft, but I will help the best I can.
    The thing about plugins, they don't do everything that you want unless someone codes one for you that does it. In this case you would need a very advanced plugin and web interface. The problem is that you are not replacing a rank, you are checking to see if they have a current rank, and adding a subgroup, which only PermissionsEX and GroupManager support. This would require a custom plugin on the server to check their rank and then communicate with a website "plugin" with the information needed. This is not a simple task and requires a Developer skilled in HTML/PHP/JavaScript and Java for the Bukkit Plugin.

    However there is an alternative and requires a lot of overhead to set up, but will work guaranteed if you set it up correctly. Enjin.
    Enjin is a website platform that also has a plugin for the server side as well. They have a shop module for the site and you can use it to create "Tags" on the website and sync with the server ranks. However to do what you are asking, you need to create a purchase item for each rank on your shop, per staff rank and have a command set to add the rank to the sub groups. As I am at school, I cannot give you pictures of what this would look like, however I am planning on making a YouTube series based on the Enjin platform. The link to my channel can be found in my signature.
     
  11. Offline

    Mitchell_J8

    Thank you for trying to help @Jayfeather311 but It can be done in essentials, I just need to know how.
     
  12. You need to do /pex group {group} rank set {rank}. the closer to 0 the {rank} is, the more priority it has.
     
  13. Offline

    Mitchell_J8

    Last edited by a moderator: Dec 8, 2015
  14. Offline

    oceantheskatr

    Yeah, I reported the other thread since it was the same as this one :p
     
  15. Offline

    Mitchell_J8

    @oceantheskatr yeah, thanks ;P! But can you see a problem? i have the ranks set up and still having the problem
     
  16. Offline

    oceantheskatr

    I can't see the problem, you have the ranks set up correctly (as far as I know) so it should be working.
     
Thread Status:
Not open for further replies.

Share This Page