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 placeddestroyed
: blocks destroyeddaysonline
: days since the player's first loginhoursonline
: hours the player has spent logged inhaspermission
: 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.
- If your groups inherit
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
Is it possible to use PermissionsEx instead of bPermissions?
If not, please make it so!!
Please advise if this plugin is still being maintained and status on UUID support. Thanks.
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.
@sharqman
thank you very much for your help
@joshua2013007
Probably. Let me know if you have any issues with it on 1.6.
Does this plug-in support 1.6?
@javitomo
I would use script block, might take some getting used to, but you can do basically anything with it.
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/
@Piero123
I bet it does.
@MinerMtfull
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.
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?
Does the plugin works with minecraft 1.5.1?
@blazen988: If a player meets the requirements of a rank, the plugin will execute the commands. If a command takes money from a player that they don't have, it is up to the economy plugin what happens to their balance, but the other commands will still run, so the player will still get the promotion.
Hey if i set a command to take a certain amount of money from a player in the commands section of the config then will it not rank them up if they don't have the money or will it still rank them up?
@clehner
Thank you! I'll try it again, I had some problems beforehand and if I get them again I'll post here.
@Diabloste
The daysonline requirement is for days since firstlogin. The hoursonline is for onlinetime.
Hi clehner, just a quick question.
Does this look for time played (onlinetime in mysql) or their first day of playing (firstlogin in mysql)?
@Draglo
Yes. To find an example, check previous comments.
Hello
I have a question.
Is it possible to use PermissionsEx to do this?
If so please reply with a Simple 'yes'
Thanks
- Draglo
Thanks, I'll see what I can do :)
@PinderGFX
There is no initial config included with the plugin. You can copy and paste the example config from this page to plugins/AutoRanker/config.yml and adapte it to your needs.
@crore
I have started working on adding player kills as a rank requirement. I haven't gotten it working yet but it is possible. Also adding a money requirement shouldn't be too hard. I will work on that too.
@javitomo
This wiki is a good starting place that I have used for making plugins: http://wiki.bukkit.org/Plugin_Tutorial
Also, reading the source code of existing plugins is useful. You could start with a simple existing plugin and then rework it to do what you want it to do.
Here is the Bukkit API docs, for reference: http://jd.bukkit.org/rb/apidocs/index-all.html