Timed Ranker

TimedRanker is a simple Bukkit plugin that allows your server to automatically promote/rank-up players based on their total online time.
Features
- Records total minutes online on server
- Easy to use configuration
- Per World (World Specific) promotions supported (if Permission plugin supports it as well)
- Customize how often promotion check is run to optimize the plugin for your server
- Essentials AFK Integration
- RoyalCommands AFK Integration
- lang.yml file for easy message customization
- Uses Vault for permission management
- Stores total gameplay time in an SQLite .db file or a MySQL database
- Constantly maintained
Commands
- tranker playtime [player] - See yours/others' gameplay time
- tranker top - See top 10 player with longest gameplay time
- tranker left [player] [world] - See how much time you/others have left until your/their next promotion
- tranker settime <player> <minutes> - Set number of minutes played for a player
- tranker addtime <player> <minutes> - Add specified amount of minutes played to a player
- tranker delete <player> - Delete the specified player from the database
- tranker convert - Convert SQLite to MySQL
- tranker purge - Purge the database
- tranker reload - Reload configuration file
Permissions
- tranker.playtime - Permission to use /tranker playtime - Default: true
- tranker.playtime.others - Permission to use /tranker playtime <player> - Default: op
- tranker.top - Permission to use /tranker top - Default: true
- tranker.left - Permission to use /tranker left - Default: true
- tranker.left.others - Permission to use /tranker left <player> - Default: op
- tranker.settime - Permission to use /tranker settime <player> <minutes> - Default: op
- tranker.addtime - Permission to use /tranker addtime <player> <minutes> - Default: op
- tranker.delete - Permission to use /tranker delete <player> - Default: op
- tranker.convert - Permission to use /tranker convert - Default: op
- tranker.purge - Permission to use /tranker purge - Default: op
- tranker.reload - Permission to use /tranker reload - Default: op
- tranker.* - Permission to use all commands
Configuration
#true for MySQL and false for SQLite useMySQL: false #MySql databse information, if useMySQL is set to true mysql: username: 'mysql_username' port: 3306 password: 'mysql_password' host: 'mysql_host' database: 'mysql_database' #Integrate Essentials AFK (default: false) essentialsAfk: false #Integrate RoyalCommands AFK (default: false) rcmdsAfk: false #Debug mode. If you don't know what you're doing, leave it false (default: false) debugMode: false #How often, in minutes, does the server check for promotions (default: 5) checkPeriod: 5 #Delete players from the database who haven't logged in the set amoutn of days. Set 0 to disable. purgeAfter: 0 #Default group for new players defaultGroup: default #If groups are set-up per world. Eg. in world "creative" the player is in group "moderator", #but in world "survival" player is in group "user" #Only enable this if your permission plugin supports per-world groups. #Notice: If you enable this, the plugin will use perworld.yml #so you'll need to set up rank promotions in that file instead of this #(default: false) worldSpecificGroups: false #Promotions list promote: #Group to be promoted from group1: #Group to be promoted to to: group2 #After specified amount of time played. Usage: d - for days, h - for hours, m - for minutes; #use spaces between days, hours and minutes timeReq: 1h 2m group2: to: group3 timeReq: 2d 3h
You can set up as many promotions as you like.
NOTE: Starting with v1.3 world specific promotions are supported. In order to set them up, edit perworld.yml instead of config.yml
Installation
First install SQLibrary and Vault and then a permission plugin of your choice. If you want AFK Integration, you need to install Essentials or RoyalCommands as well. Then drag and drop the jar file in your plugins folder and run the server to generete the config file and database. After that you can proceed to editing the configuration.
Dependencies
- Vault
- SQLibrary
- Essentials (if essentialsAfk is set to "true" in the config )
- RoyalCommands (if rcmdsAfk is set to "true" in the config)
Changelog
v1.4.1
- Update to CB 1.6.4-R0.1
- Added support for MySQL databases
- Added feature for converting old SQLite databases to MySQL
- Added feature which deletes players who haven't logged in for a configurable amount of time from the database
- Added command for adding playtime to a player
- Added command to delete a player from the database
- Minor fixes to some commands and methods
v1.3.7
- Update to CB 1.6.2-R0.1 Snapshot
- Minor fixes
v1.3.6
- Update to CB 1.5.2-R0.1
- Fixed bug with Privileges not promoting
- Updated ChatColor parsing and lang.yml
v1.3.5
- Support for colors in lang.yml
v1.3.4
- Commands are now case insensitive for players' names
- Changed command /tranker left to /tranker left <player> [world]
- Added a few fields in lang.yml
- Fixed up onDisable() disabling all tasks by other plugins (thanks gmcferrin)
- Minor fix-ups and tests
v1.3
- Added per world promotions
- Added option to choose how often the plugin checks for promotions
- Added perworld.yml for setting up world specific promotions
- Minor fixes and code clean-up
- Changed debugInfo to debugMode in config.yml
- Added defaultGroup in config.yml
- Made config.yml easier to read and added extra comments to help server admins
v1.2
- Added RoyalCommands AFK Integration
- Added lang.yml for message configuration
v1.1
- Added Essentials AFK Integration
- Added command /tranker left
- Added debugInfo configuration option
- Changed how time required for rankup is set in the config file
- Some minor fixes for some commands
v1.0
- Initial Release
Other Stuff
My Plugins
- Reaction Rewards - Periodic reaction tests/trivia questions with rewards in items or money. Check it out :D
-
View User Profile
-
Send Message
Posted Apr 17, 2013@TheR3ktor
I'll run some tests and release a newer version tomorrow.
-
View User Profile
-
Send Message
Posted Apr 17, 2013I will look after it! :D
But I will not be promoted?
I will wait to a newer version :)
-
View User Profile
-
Send Message
Posted Apr 17, 2013@TheR3ktor
You should now be able to use /tranker playtime. It should have also ranked you up. If it didn't rank you up, check groupmanager to see if the player is in group "guest". If there is no group set in the files, my plugin automatically assigns "default" group to the user being checked.
EDIT: I will release v1.3 with some fixes, but it takes a very long time until the Staff approves my new files (v1.2 is still pending approval)
-
View User Profile
-
Send Message
Posted Apr 17, 2013I see it now
-
View User Profile
-
Send Message
Posted Apr 17, 2013I will wait 5-10 minutes maybe.. :p
-
View User Profile
-
Send Message
Posted Apr 17, 2013@TheR3ktor
After you start the server wait until you get TempData updated 5 times then you should get a debug message saying "TempData saved to database". Do you see that message ? You should see it after about 5-6 minutes after you started the server.
-
View User Profile
-
Send Message
Posted Apr 17, 201300:57:49 [INFO] politirektor issued server command: /tranker playtime
00:57:51 [INFO] [TimedRanker][Debug] TempData updated
And In-Game everytime I type /tranker playtime
I will get a messages : Invalid player name or database not updated?
-
View User Profile
-
Send Message
Posted Apr 17, 2013I will try! :D
-
View User Profile
-
Send Message
Posted Apr 17, 2013@TheR3ktor
If you are not already using 1.1, you should switch to it. In the config file change debugInfo to true and then tell me what messages you get in your console (you should look for those prefixed with "[TimedRanker][Debug]").
By the way, the promotion check is runned once every 5 minutes, so even if you put in config.yml to promote after 2 minutes, it will only happen after 5, as that's the first time the plugin checks for rank-up.
-
View User Profile
-
Send Message
Posted Apr 17, 2013I try this with my test server.. I use groupmanager but permissions work fine... But I will not get builder.. I'm bad to english..
I'll show it
Like
promote:
guest: #Group to be promoted from
#Group to be promoted to
to: builder
timeReq: 2m
Maybe there is something wrong?
And the database won't work either... But I like this plugin! :D I will keep looking at it! :D
Hope you understand my useless english!
-
View User Profile
-
Send Message
Posted Apr 17, 2013@TheR3ktor
Can you explain further, please ? What permissions plugin do you use? What console message do you get ?
-
View User Profile
-
Send Message
Posted Apr 17, 2013It doens't work with time
-
View User Profile
-
Send Message
Posted Apr 17, 2013@spy85
Is there any message in the console saying: "[TimedRanker] Config files loaded" ?
-
View User Profile
-
Send Message
Posted Apr 17, 2013The config and folder do not generate. I have vault and essentials as well as group manager.
-
View User Profile
-
Send Message
Posted Apr 17, 2013I first Download :)
-
View User Profile
-
Send Message
Posted Apr 17, 2013@TNT24X
I'm glad it works. You should check this page to see when version 1.1 or 1.2 gets approved.
-
View User Profile
-
Send Message
Posted Apr 17, 2013hi some of my pulgins were out of date it works now
-
View User Profile
-
Send Message
Posted Apr 17, 2013@TNT24X
Please run "java -version" in your console and tell me what version of java you have installed.
-
View User Profile
-
Send Message
Posted Apr 17, 2013noting it dose not come up as being loaded
-
View User Profile
-
Send Message
Posted Apr 17, 2013@TNT24X
Can you tell me what message you get in your console ?