RankBot
Automatically promote a player's rank
Using either time played or players using a secret phrase.
How to install RankBot
1) Add RankBot to your plugins folder, start your server or /reload your plugins
2) Edit the config.yml file in the RankBot Folder.
3) Reload or restart again for your changes to take effect.
Example Secret Phrase Setting
SecretPhrase:
Phrase0: rank me
FromGroup0: guest
ToGroup0: nomad
Example Timed Hours Played Settings
HoursPlayed:
Hours0: 8
FromGroup0: nomad
ToGroup0: citizen
Commands
/rankbot {secret_phrase) - Used for secret phrase promotions.
/rb time - Used by a player to show their time until their last log off, doesn't count current time since logging back on. Requires rankbot.time permission, which is defaulted to false.
/rb time {playername) - Used by admins to either list a player's time since last log off, or lists all players if no name is supplied. Requires rankbot.admin permission, which is defaulted to op.
Permissions
rankbot.time - Allows the use of the player time command, which reports back to the player their play time since the last logout (not counting current time).
rankbot.admin - Allows the use of admin commands, the only current admin command is the admin version of "/rb time"
Requirements
RankBot requires Vault and a supported permissions plugin.
Visit the Vault Webpage to see the current list of supported permissions plugins
Notes
To make RankBot more efficient the ranking isn't done the moment the time requirement is met, this would require a timed event that would check all player times vs. all the RankBot Times. Instead, a player isn't ranked until the next logon.
The playertime.db file in the RankBot Folder contains the playtime of players (in minutes) since the file was written to disk, this file is only written from memory to the disk file on server stops or plugin reloads.
There are up to 30 Secret Phrases and 30 Timed Hours Played Automatic Ranks
Please help, not working. Make myself guest, restart try phrase, nothing happens. Updated to 1.3, Heres config:
Capitilzation doesnt matter right?
Thank you for the 1.3 update,
works like a charm now. Good work buddy
world support? Since I have different groups in all my worlds...
@Quinnatator
RankBot 1.3 has a new time command, two versions of "/rb time" one for players and one for admins, please read the main page for use, and required permissions.
@Ellogwen
So you know the time isn't written to the database file until the server stops or the plugins are reloaded, but yes the in memory data was having several issues one during player quits, that caused problems if you hit them just right, Fixed in version 1.3.
Version 1.3 has been uploaded and is awaiting the approval from the Bukkit Team.
Solved some issues related to user login names, and timing of events that caused some players to either loose time in the database, get reset to zero, or to not event get recorded to the database.
Also added a new time command, with an admin and player version with permissions for each, please read the information above.
@Ellogwen
I'll move up my update for RankBot's new time commands for players and admins so I can look into the file writing error you describe.
@Dr_Proffesor
Not sure why you are having a problem, sounds like main server I test RankBot on, PEX, etc.
Still issuing the NullPointerException like mentioned before on OnPlayerQuit-Event
Bukkit 1.4.7-R1.2 with PEX and Vault
Addition Information:
manual rankup with passphrase works, and automatic rankup after editing playedtime.db by hand also works. Just writing the played time into the file on PlayerQuit doesn't work
@AxelDios
Pex/ PermissionsEx
@rwmtiger
No, sorry, I have no plans to link it with other plugins, it already has a lot to connect to with vault and the permissions vault supports.
@Quinnatator
There's already a plan to add that ability to admins, I'll think about adding it for players.
@Dr_Proffesor
What permissions plugin are you using?
can you make rank work with McMyAdmin. there no auto rank for it and McMyAdmin is overriding permissionsEX
Hi, great plugin, can you add a command that allows players to check their hours/minutes played? That would be awesome so people know exactly when they will be ranked up. Thanks.
Not working for me at all. 1.4.7 and newest version of this.
Made my self guest, said phrase, nothing happened
@AxelDios
well. i hope soon. it be nice to see in game info. just try keep it super easy. non of that permission stuff. it is why in 1st place i cant get other auto rank program to work.
@castlecorpserver
The time in the file is set and reset, depending on events like a player's rank being changed, etc.
It is a long integer number representing minutes played, and doesn't account for idle time (currently).
Also as I've noted before, the plugin is written to be very passive to be a very lite load on the server. So if you have a rank that takes effect in one hour and the player is on for over an hour they won't see their rank change. There isn't a continuous check of all player times, ranks, and ranking, this would add a lot of work for the server. Instead the timed ranking doesn't take effect until the next time they logon, if they have enough time played.
The secret phrase ranking happens immediately.
NOTE: The time file isn't updated until the server is rebooted, so you won't see the current player time, that is kept in memory while the server is running. (In the future I will be adding a current time function that can report the players actual current time)
@rwmtiger
There are no permissions, nor any reason to have any.
got say this. you rock. only one work. is there permission for it?