move a person up a rank

Discussion in 'Plugin Development' started by mason1370, Jun 5, 2012.

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

    mason1370

    i would like the person to move up a rank once they type the command in. I already have the command set up but i cant thinkk of a way move the person up to the next rank any ideas to help me?
     
  2. Offline

    Lemonz1805

    In order to move someone up a rank you will need the ranks themselves, I suggest maybe getting PermissionsEx, its a permission plugin that allows you to set up ranks and promote them.
     
  3. Offline

    JOPHESTUS

    I made it for my plugin when they say "I will obey the rules." the console executes
    Code:
    /manpromote playername new_regular
    This is for GM
     
  4. Offline

    mason1370

    how did you get the console to execute it?? like code wise
    I have PermissionsEX
     
  5. Offline

    JOPHESTUS

    Code:
    Bukkit.dispatchCommand(console, "manpromote " + p.getName() + " " + "new_regular");
    mason1370
     
  6. Offline

    xDrapor

    I'd recommend using vault and a config to be able to rank up a player. You can have it rank a player to a rank specified in the config file with many widely used permissions systems.

    For example:
    Code:
    Group = plugin.getConfig().getString("PromoteTo");
    permission.playerAddGroup(args[0], Group);
    Remember, you need to work with Vault for this to work.

    Hope this helps!
    xDrapor
     
  7. Offline

    Sleaker

    the only issue with using Vault, is Vault can only add/remove groups. It can't promote/demote as it currently doesn't have any support for detecting promotion tracks etc, and probably wont ever.
    So you'd have to manually specify what groups to promote along.
     
  8. Offline

    wouter0100

    With vault you can get the player group? And if you let the owner configure the order of ranks, then its possible.
     
  9. Offline

    Sleaker

    Correct, but that would be all done outside of Vault, the server owner would need to manually set the options on what groups he wants and in what order etc.
     
Thread Status:
Not open for further replies.

Share This Page