Auto-promote?

Discussion in 'Archived: Plugin Requests' started by Claryn, May 10, 2012.

  1. Offline

    Claryn

    Is it possible to make a pluging that would automaticly execute a command like
    /promote <player>
    after x hours of playtime?

    Would be really cool if this plugin already existed.
     
  2. Offline

    zathrus

    it's included in the latest CommandsEX version - not exactly executing commands but promoting players after configured amount of time nonetheless :)

    you might want to visit CommandsEX Builder Page to download only the feature(s) you're interested in ;)
     
  3. Offline

    Claryn

    Wow, thats great!
    Wont work with bPermissions, becuase of these commands to promote:
    /world world
    /user <user>
    /user setgroup <group>

    :/ Is there a plugin I can add with bPermissions to make it just /promote <user> and POOF, they are set to the higher rank?
     
  4. Offline

    zathrus

    What do you mean by won't work with bPermissions? CommandsEX is using Vault as group management interface and Vault does work with bPermissions as far as I know.

    if you mean you can't use those commands to promote your players, then it's a different thingh though
     
  5. Offline

    Claryn

    I got vault, but how do you mean I'm supposed to promote a player?
    With bPermissions I have to do this:
    /world world
    /user <player>
    /user setgroup <group>

    I need a plugin that does this:

    When the player Notch have played totaly 3 hours on the server, the console will execute these commands:

    /world world
    /user Notch
    /user setgroup Member

    and then for the player Herpderp, it shoudl say /user Herpderp instead..

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  6. Offline

    zathrus

    well, that's exactly what both, CommandsEX and Timedcommands can do for you... CommandsEX automates this, so after a player played for a certain time on your server, it will automatically switch his group to one provided in a config file


    so basically:
    1. go to the Builder Page
    2. untick everything there except the "PlayTime-based promotions" checkbox
    3. click the button at the end of that page
    4. unzip the downloaded ZIP file into your plugins folder
    5. open up CommandsEX folder and find file config.yml
    6. edit the lines in config.yml file that apply for automated time promotions
    Example of a config setting (showing only automated promotions part of the config):
    Code:
    timedPromote:
        default: 0
        explorer: 60
        member: 3600
     
    timedPromoteTaskTime: 180
     
    timedPromoteExclude: [admin]
    
    ... in the example, people who played on your server for 60 seconds would be automatically promoted into the explorer group, then after playing 3600 seconds (1 hour), they auto-join the members group.


    EDIT: I just realized there is a bug in the download page which will not download the config.yml file into the ZIP file for you. Not to worry, just copy CommandsEX.jar from the ZIP file into your plugins directory, then run the server - config.yml will be automatically generate. You will the need to stop your server again and edit the config options listed above. Then you can start the server again and all should work for you :)
     
  7. Offline

    Claryn

    How does it promote the player? What command does it use?
    edit: I am talking about bPermissions and vault.
     
  8. Offline

    codename_B

    It accesses the api - doesn't need to use commands.
     
  9. Offline

    Claryn

    So it would work with bPermissions? =D
     
  10. Offline

    codename_B

    Did you even try it?
     
  11. Offline

    Claryn

    No, I just wanted to get a simple "yes" or "no" before I launched it on our test-server. Sparing time is cool.
     
  12. Claryn Just 20 1/2 hours from the first good answer till now, testing it had needed around 2 minutes. Yea, sparing time is cool, wasting spare time of himself and others even more... <.<
     

Share This Page