ActivityPromotion - Promote players based on their activitytime.
IMPORTANT: As I am not playing minecraft anymore, i stopped developing this plugin.
This will now be unactive. If you want to continue or start over fell free to take a look at the Code.
Version: v0.5.5
Notes on the last changes
v0.5.4 - v0.5.5
I fixed the spelling mistake, please change it in the config: "necessaryGroup" instead of "neccesaryGroup".
I implemented two new variables in the config: "promotionCheck" and "resetCheck".
They are used to determine in which periods the tasks should run. 10 means every 10 seconds.
Change that according to your needs.
I also implemented MYSQL, but i haven't fully tested it yet. Please report any bugs in the forum.
Attention
This plugin needs Vault as permission and economic interface!
You have to download Vault er ein order to get this plugin to work. http://dev.bukkit.org/server-mods/vault/
I am the owner of a german minecraftserver and on our server is a need for automatic promotion.
There is nothing out there, that provides the same functionality, so i created this plugin.
This plugins allows you to put player in multiple groups, based on the time they have spend playing on the Server.
This is my first plugin for bukkit, so please be patient with updates and bad code ;)
define your own period of time the user should be promoted
multiple timeperiods possible
add Permissions to the user
define own ActivityPeriods like 7 days, 1 month, whatever
See also the last logout, the total playing time and inactive players
Description:
The plugin will count the onlinetime of each player.
when a player reaches a specific timelevel, he will be promoted to the group.
After a resetdate the player will keep the groups for one more timeperiode
if he is inactive in this period, he will be degraded in the next period.
The date will be stored in the list.yml
That is all.
See the video for more details.
Commands:
/ap
shows all commands
/ap reload
reload the plugin and save actual status
/ap info <player>
shows information about the player
ap info
shows information about yourself
Permissionnodes:
activitypromotion.reload
able to reload ActivityPromotion
activitypromotion.info
Allows you to see Information about yourself.
activitypromotion.info.other
Allows you to see Informations about other players.
activitypromotion.loginmessage:
With this node you will see inactive Player when you log in
Since version 0.5.5 AP supports MYSQL again.
Please note that this plugin will NOT create the table, instead you have to create it.
The code looks like this:
implemented Vault to support more permissionplugins and to easier integrate economics in further steps
fixed exception when a player was not found after asking information about it
v0.5.3
fixed handling with console
v0.5.2
Compiled against CB1.2.4-R1.0
v0.5.1
Added GroupManager support
Added Ingame commands
v0.5DEV
Complete rewrite, thanks to the new code base provided by bukkit.
v0.4.1
updated version number
fixed a small bug
implemented some more features that doesn't work actually
v0.4
Compiled against CB 1317
Includes newest version of bPermission and PermissionsEx
v0.3.3
fixed an error that created nullpointerexceptions when using the flatfile
v0.3.2
removed Permission reload after each promotion and put it in the /ap reload command
added secure close for mysql
v0.3.1
removed debug output when a player joins
v0.3
Added MySQL support
improved performance
playerupdate now every two (2) seconds instead of every tick
v0.2
More Permissions to support
Added ignoreUser, endTime, default and permissions
Bugfixing
v0.1
First release
Warning
Even so i tested out this plugin there sure will be Bugs and Errors.
Please post them here so i can improve the Plugin and add more Features.
If you want to help me, improve the plugin or request features please do that also here.
Todo
timed Groups, e.g VIPs after you typed in "/ap promote <player> <group> <time>