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
Ok, great.
@beatsguy
It shouldn't be a Mac problem, but it could be a permissions problem. Or just a plugin problem.
Anyway, create a folder AutoRanker in plugins, and a file config.yml inside it. Then you can put your config there.
Also, you will know the plugin has successfully read the config because it will write to the console "Loaded # ranks".
@beatsguy
It should make a folder, AutoRanker, with a config.yml that you can fill in with the example config on this page, adapting it for your setup.
Does your server.log say anything about the plugin loading, or having errors?
@javitomo
I'm glad you were able to get it working.
@oOAfterShockOo
For Group Manager, start with the example config and make this change:
Replace the line
with
and do likewise for each other group other than builder.
Also, in your Group Manager group.yml, add the group.… permission for each group, i.e. for the builder group, add permission node group.builder.
If you need more help, post your config.
@clehner
hey, thank you very much, in the end we managed to make it work! This plugin will save me a lot of work! thank you very much, good job!
:)
Hey can u pls give a example for this plugin working with groupmanager? thanks
ok, thanks, will try to set logblock morning.
Thanks for your help, I will return, xD
;)
@javitomo
This page is for AutoRanker. Ranker is a different plugin. If you are trying to use Ranker, see here: http://dev.bukkit.org/server-mods/ranker/
LogBlock is a requirement for AutoRanker. It won't work without it. You can get LogBlock here: http://dev.bukkit.org/server-mods/logblock/
sorry, do not understand this:
LogBlock note
To use the hours online and days online requirements, you must have in your LogBlock configuration logPlayerInfo set to true, e.g.:
logging:
logPlayerInfo: true
where this LogBlock? sorry
ok, my settings are only 2 ranks, aldeano is default, so would look like, one minute I put to test
ranks:
ciudadano:
requirements:
minutesonline: 1
haspermission: group.aldeano
hasnotpermission: group.ciudadano
commands:
- say {PLAYER} se ha ascendido al rango ciudadano!
- pex user {PLAYER} group set ciudadano
- give {PLAYER} brick 128
This is all I have in the plugin config Ranker, not Autoranker
@javitomo
Here is most of your config converted from Ranker's format to AutoRanker's.
You will need to have the permissions group.default, group.aldeano, and group.ciudadano in their respective groups, as in the following (PEX):
Also, remember to have this in your LogBlock config:
Thanks for the welcome.
Try to set it up, but there is something that escapes me.
nodes that I need?
I have only two groups, I want people to take 7 days playing automatically rise to the rank citizen forever.
general:
chat: true
debug: false
operator: false
autorank:
world:
aldeano:
rankupmessage1: '&8--------------------------------------------'
rankupmessage2: ' Has ascendido al rango aldeano!!'
rankupmessage3: '&8--------------------------------------------'
rankdownmessage1: '&8--------------------------------------------'
rankdownmessage2: ' You ranked down to Peon rank!'
rankdownmessage3: '&8--------------------------------------------'
rankupcommand1: server:/pex user {player} group remove {aldeano}
rankupcommand2: server:/pex user {player} group set {ciudadano}
rankupcommand3: server:/pex reload
rankupcommand4: server:/give {PLAYER} brick 128
rankdowncommand1: server:/perm player setgroup {PLAYER} {RANK}
rankdowncommand2: server:/perm reload
rankdowncommand3: server:/give {PLAYER} wood 1
rankdowncommand4: server:/give {PLAYER} dirt 1
rewardinfo: '100 stacks of wood, dirt, and some new commands!'
requirement: time=60
ciudadano:
rankupmessage1: '&8--------------------------------------------'
rankupmessage2: ' Has ascendido al rango ciudadano!!'
rankupmessage3: '&8--------------------------------------------'
rankdownmessage1: '&8--------------------------------------------'
rankdownmessage2: ' You ranked down to Peon rank!'
rankdownmessage3: '&8--------------------------------------------'
rankupcommand1: server:/pex user {player} group remove {aldeano}
rankupcommand2: server:/pex user {player} group set {ciudadano}
rankupcommand3: server:/pex reload
rankupcommand4: server:/give {PLAYER} brick 128
rankdowncommand1: server:/perm player setgroup {PLAYER} {RANK}
rankdowncommand2: server:/perm reload
rankdowncommand3: server:/give {PLAYER} wood 1
rankdowncommand4: server:/give {PLAYER} dirt 1
rewardinfo: '100 stacks of wood, dirt, and some new commands!'
requirement:
stats:
line1: '&8--------------------------------------------'
line2: ' &3{RANK} &2{PLAYER}'
line3: '&6 {PVP} &aplayers killed!'
line4: ' &6{PVE} &amonsters/animals killed.'
line5: ' &6{TIME} &aminutes played.'
line6: ' &6${MONEY} &ain wealth.'
line7: '&8--------------------------------------------'
chatformat:
aldeano: '&a{RANK} {PLAYER}&3: &9'
ciudadano: '&a{RANK} {PLAYER}&3: &9'
@speaw
You're welcome!
@javitomo
It should work with PEX. In the config under "commands:" for each rank, instead of the "- exec u:..." line, write:
- pex user {PLAYER} group add [group]
where you replace [group] with the group name that the player should get.
If that doesn't work, post your config and I'll try to help.
plugin works with permissionsEX?
thanks
good work thank you :)
@aidendudewow
Thank you for your interest. The downloads have not yet been approved by the bukkit.org moderators. However, this link should work: http://dev.bukkit.org/server-mods/autoranker/files/3-auto-ranker-0-2-0/
Edit: the downloads are now approved and listed. Let me know if you have any trouble using the plugin.
Download ???/