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
Hi I have a quick question: How does the plugin log time in the database? Hours? Minutes? Seconds or what? Also, would you mind taking a look at this config and telling me if it will work? I haven't noticed if people have been ranking up, and they should after an hour. Thanks! Here is the config:
HoursPlayed: Hours0: 1 FromGroup0: Guest ToGroup0: Peasant Hours1: 48 FromGroup1: Peasant ToGroup1: Settler Hours2: 96 FromGroup2: Settler ToGroup2: Citizen
@googlebuscus
I looked at it and the config looks okay, but is this the first one you asked about, or a second attempt?
Because you said it was set to 6 hours but the one you put up via pastebin says 8 hours.
What I need next is version numbers, etc.
What version are you running of RankBot, Vault, and what permissions plugin are you using with it's version number?
Also what are the exact names of the ranks, are they written in all lowercase, or start with a capital letter, etc.
Still doing it, can you check the pastebin and tell me what i did wrong?
@AxelDios
http://pastebin.com/eK9Xs7NV
@googlebuscus
Like all my plugins, RankBot is written to put as little stain as possible on a server.
If you set a player to rank up after 6 hours, at 6:01 they won't rank up, but the next time they logon they will. All promotions are done on logon.
The other issues are unique, I never had heard of anyone having a demotion problem.
Please show me a copy of your RankBot Config.yml
@volderman
Here's a great place to start with:
Bukkit Developer Portal
It has Information about the Bukkit API and create plugins, and even has links for people who want to learn Java.
@Jdon278
This keeps coming up, but if you read above, the limit isn't 30 hours, it's 30 hourly settings. Meaning any time you want, up to 30 different times. Would anyone have 30 or more ranks?
Ok so i've done this in my config;
HoursPlayed: Hours0: 6 FromGroup0: Member ToGroup0: Respected
Yet, it isn't promoting from member to respected after 6 hours, BUT it's demoting higher ranks back to respected. What's up with that?
AxelDios I dont mean to pry but whered you learn java and how to code plugins?????
May I ask why this only supports up to 30 hours ?
@ViscousSummer88
No it doesn't, because there isn't a standard way to tell if another plugin sets a player as AFK.
And I don't want RankBot to constantly monitor all the players to see if someone is active or inactive.
Does this take advantage of the AFK features in plugins? So if a player is AFK it will not keep counting their time?
min kompis melvin är snäll
abdullah Image removed due to an invalid URL: http://
@viktorjanpaulis
As listed above RankBot uses Vault so only Permission Plugins that Vault supports.
Here is the current list on Vaults Page:
Perms: Permissions 3, bPermissions, PEX, GroupManager, PermissionsBukkit, zPermission, SimplyPerms.
So no, RankBot won't work with XPerms.
I'm using a new permissions plugin called XPerms, i dont think its working D:
@ViscousSummer88
No, it means 30 different hourly settings.
We're you say upto 30 hours played automatic ranks are allowed, does that mean it will only allow for ranking upto 30hours, so 1week would not be an option for setting?
@The_Bias_P11
I'll think about adding that as a future option.
@ManBeastPigDev
A new copy of RankBot built on CraftBukkit 1.4.7-R1.0 has been uploaded, try that version and see if you still get errors.