AutoRanker

AutoRanker automatically executes commands on players when the players have met certain requirements in their LogBlock history, in terms of number of blocks created and blocks destroyed, and time spent online.

The intended use case for this plugin is to have players automatically promoted through different ranks as the amount of their work on the server accumulates. Note that this use requires a separate plugin to facilitate ranking commands, such as bPermissions.

Currently the plugin checks if a player meets the requirements of each rank when they log in. If there is interest among server admins, I could make it check periodically for each player that is logged in.

Usage Configuration

The config file is plugins/AutoRanker/config.yml.

Provide a list of ranks in the configuration file. For each rank, provide the set of requirements for achieving that rank, such as the following:

  • created: blocks placed
  • destroyed: blocks destroyed
  • daysonline: days since the player's first login
  • hoursonline: hours the player has spent logged in
  • haspermission: a prerequisite permission, such as for a base group
  • hasnotpermission: a postrequisite permission, to indicate that a player already has this rank or otherwise shouldn't be eligible for it
    • If your groups inherit group.… permissions, this should be the permission that is to be granted for this rank. Otherwise it can be left blank.

For each rank, also provide the commands that should be executed when the requirements are met, in which {PLAYER} is replaced by the name of the player who has met the requirements.

Example configuration

Below is an example configuration with two ranks, builder and architect, using bPermissions to manage the player groups.

ranks:
  builder:
    requirements:
      daysonline: 2
      hoursonline: 2
      created: 1000
      destroyed: 2000
      haspermission: group.default
      hasnotpermission: group.builder
    commands:
      - exec u:{PLAYER} a:setgroup v:builder
      - say {PLAYER} has achieved Builder rank.
  architect:
    requirements:
      daysonline: 60
      hoursonline: 24
      created: 10000
      destroyed: 20000
      haspermission: group.builder
      hasnotpermission: group.architect
    commands:
      - exec u:{PLAYER} a:setgroup v:architect
      - say {PLAYER} has achieved Architect rank.

Commands & Permissions

  • command: /autorank reload
  • permission: autorank.reload (default: op)
  • Reload the ranks from the config file.

Alternatives

  • Autorank - rank based on amount of time played
  • Ranker - rank based on amount of time played, money held, players killed, monsters killed

Requirements

LogBlock is required.

To use the hours online and days online rank requirements, you must have in your LogBlock configuration logPlayerInfo set to true, e.g.:

logging:
  logPlayerInfo: true

Statistics

plugin usage statistics

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of TheLecturer TheLecturer Apr 09, 2014 at 20:39 UTC - 0 likes

    Please advise if this plugin is still being maintained and status on UUID support. Thanks.

  • Avatar of TheLecturer TheLecturer Oct 02, 2013 at 07:46 UTC - 0 likes

    Hi. Can "hasnotpermission" take multiple values, and if so, what is the layout?

    Or, is there a way to exclude certain users from the tests?

    Thanks.

  • Avatar of javitomo javitomo Jul 09, 2013 at 00:40 UTC - 0 likes

    @sharqman: Go

    thank you very much for your help

  • Avatar of clehner clehner Jul 05, 2013 at 13:58 UTC - 0 likes

    @joshua2013007: Go

    Probably. Let me know if you have any issues with it on 1.6.

  • Avatar of joshua2013007 joshua2013007 Jul 05, 2013 at 12:26 UTC - 0 likes

    Does this plug-in support 1.6?

  • Avatar of sharqman sharqman Jun 24, 2013 at 15:35 UTC - 0 likes

    @javitomo: Go

    I would use script block, might take some getting used to, but you can do basically anything with it.

  • Avatar of javitomo javitomo Jun 05, 2013 at 12:55 UTC - 0 likes

    Hello clehner

    I'm looking for a way up the ranks to users after passing a test of questions about the rules, know of any plugin that does this? or you could implement something like that?

    It would be something as simple as pressing a button or sign.

    Thank you. -------- Edit.

    I have found this, but not if it is really what I'm looking for.

    http://dev.bukkit.org/bukkit-mods/serversigns/

    Last edited Jun 05, 2013 by javitomo
  • Avatar of clehner clehner May 12, 2013 at 06:13 UTC - 0 likes

    @Piero123: Go

    I bet it does.

    @MinerMtfull: Go

    Copy the example config file on this page to plugins/AutoRanker/config.yml Then edit it with the ranks you would like to have. The plugin will grant players promotions according to the requirements that you specify in the config. You do not have to promote people - the plugin does that. Server chat is not used by the plugin except for "/autorank reload" which will cause it to reload the ranks from the config file.

  • Avatar of MinerMtfull MinerMtfull May 12, 2013 at 01:27 UTC - 0 likes

    I don't get how i create the ranks!! Do i do it in the server chat or in the CraftBukkit server files? Also do i have to promote people myself or does the plugin do it for me?

  • Avatar of Piero123 Piero123 Apr 16, 2013 at 00:17 UTC - 0 likes

    Does the plugin works with minecraft 1.5.1?

Facts

Date created
Jan 15, 2013
Category
Last update
Mar 28, 2013
Development stage
Beta
License
MIT License
Curse link
AutoRanker
Downloads
4,903
Recent files

Authors