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
AxelDios, Great plugin and I like the customization for allowing players to go from one rank to another. Do you have any plans on expanding to plugin to allow more than 30 secret phrases for players to use? For example, I have 11 ranks available for players, but they'll unlock them in 2's (with the exception of the last rank which is just 1) as they progress in time played. I was barely able to fit all of the time-played ranking by using all 30 slots. However, I realized that the uses would not be the same in the secret phrases part because I want players to have the option to switch between ranks of their choosing as they unlock more with time played. This includes switching from a rank unlocked at 45 hours to one you unlocked at 20 hours.
Basically, I like the idea of my players having more options for choosing what title they want that they have available and they unlock more options as they play longer. If you don't plan on expanding the plugin I can understand...I was just curious. Thank you.
@gjalt14
RankBot has nothing to use to promote the player, if you read above it says the following:
Requirements
RankBot requires Vault and a supported permissions plugin.
Visit the Vault Webpage to see the current list of supported permissions plugins
You don't appear to have one of those supported permissions plugins in your list of plugins.
hello my console says this :00:14:39 [INFO] gjalt14 issued server command: /rankbot own 00:14:39 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'rank bot' in plugin RankBot v1.3a at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:18 9) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchCommand(CraftServe r.java:523) at net.minecraft.server.v1_5_R3.PlayerConnection.handleCommand(PlayerCon nection.java:971) at net.minecraft.server.v1_5_R3.PlayerConnection.chat(PlayerConnection.j ava:889) at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java :846) at net.minecraft.server.v1_5_R3.Packet3Chat.handle(Packet3Chat.java:44) at net.minecraft.server.v1_5_R3.NetworkManager.b(NetworkManager.java:292 ) at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java :115) at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35) at net.minecraft.server.v1_5_R3.DedicatedServerConnection.b(SourceFile:3 0) at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:5 81) at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:2 26) at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:4 77) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java :410) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:5 73) Caused by: java.lang.UnsupportedOperationException: SuperPerms no group permissi ons. at net.milkbowl.vault.permission.plugins.Permission_SuperPerms.playerRem oveGroup(Permission_SuperPerms.java:86) at net.milkbowl.vault.permission.Permission.playerRemoveGroup(Permission .java:572) at com.axeldios.RankBot.RankBot.onCommand(RankBot.java:175) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 15 more
i dont know what to do someone sad that i should get a group plugin i did and still it doesnt work like it should these are my Plugins (23): FishStats, MultiWorld, RyanProof, WorldEdit, CoreP rotect, Groups, ChatExtras, DeepVanish, iDisguise, Vault, GriefPrevention, AutoS aveWorld, FishChecker, WorldGuard, Essentials, EssentialsXMPP, EssentialsProtect , RankBot, EssentialsSpawn, EssentialsGeoIP, EssentialsChat, EssentialsAntiBuild , Factions
plz help me!!
@Mr_Wired
Due to time constraints this probably won't be updated until 1.6.
It should work fine on 1.5.2 servers, and works fine on three of mine at the moment.
Ooo, could you please update to 1.5.2? Could really use this for my server :)
@Zetakaeme
RankBot is designed to be very lite to prevent server lag.
When a player joins the server the time is recorded, then when they leave the time logged on is calculated and this time is added to their total time.
When they join RankBot also checks to see if they are promotable.
The time log file is only saved when the server is shut down or restarted.
AxelDios
I have a question, the plugin save the time witch a player played. But when the player get offline, and then reconect, the time reset ?
@ThisUsernameIsMine
Sorry but I won't be changing the time for a few reasons.
The main reason is, you would never be able to use time settings like seconds or minutes. To make RankBot work with the lowest possible strain on a server it only promotes on next logon. Player time is updated when they log off, and then checked again on logon to see if they have enough time to go to a new rank.
And the time is a count of time logged onto the server, not a calender date based on logons, so hours makes more sense then times like weeks, so if you want them to be on an entire week worth of hours then just do the math, but most people want to say after something like 20 hours of logon time, then promote to a rank.
Please add a customisable amount of time, instead of fixed hours ;)
e.g.: 1h for 1 hour, 1m for 1 minute, 60s for 60 seconds, 1w for 1 week
Thanks :)
@chirochord
You will find a default config.yml file in the RankBot Folder after you run the server or reload it with RankBot installed.
Take a look at that, and if you still have a problem, describe here what you want to do and I'll explain it to you.
could someone offer and example config? I feel stupid asking, but I don't know how to set up the config at all
it about dam time McMyAdmin update and fix there end. i think this plugin is working for me now. i am testing it out. i do wish soon you come a file that written and save every min. but as long it is keeping time. i gust it do for now.... all other auto rank plugin dont seem to work!
Uploaded RankBot 1.3a
Updated to newest version of Vault and newest 1.5.1 Dev Build of Bukkit.
Update please?
@AxelDios
So far I've checked the code and it's all correct, and I tried so far to duplicate the secret phrase problems and I can't, the players that are the wrong FromGroup get the correct message "You are the wrong rank to use that phrase", and the promotion isn't completed.
I would like to know what versions of Vault and what version and name of your permissions plugins you are both running.
Also what build of CraftBukkit.
And how your ranks are setup, it's possible Vault or the permissions plugin thinks the players are in more than one group.
@Ellogwen
@Dr_Proffesor
Okay, so you both know the whole point of the "FromGroup" is to check that the players are coming from the correct group/rank before promoting them to the "ToGroup".
Either a bug has crept into the 1.3 release, or there is an issues with Vault and or whatever permissions plugins are being used.
I'm going to look at RankBot's code first and comment back here in a few hours max.
@AxelDios
oh ok i got it now, idk why wasnt working. But can i request a feature? If they are not in the "from" rank for the secret phrase can they not be allowed to run? Example: I have guest member and admin. I have it set up so if ur guest and type the phrase u get made member. But if u are admin and type it, u can become a member. Any way to fix this?
Strange behaviour since 1.3 update.
I configured the Plugin like this
hours: 24 from RankA to RankB
upgrading works but also players who are ranks higher than B (like RankK or even Admin) get "upgraded" to RankB when the 24 hours playtime have been arrived but still got their higher permissions (like admin permissions)
@surechoice
There's only one login event for players, I could check which world they are in, but I would have no way to tell which world your different ranks/groups belongs to.
If you have different groups why would it matter?
@Dr_Proffesor
First of all, are you doing "/rankbot canrankplz" (no quotes).
And is RankBot, Vault, and your permissions plugin all running, did you check?