This adds on top of the diminishing returns system a mechanic such that gains will expire the configured number of minutes after they occured, rather than all being reset at once.
This prevents someone from not getting diminishing returns on the xp gain they recieved just before the reset would have occured.
Obligatory explanatory graphs: http://i.imgur.com/uSzicIR.png
When a player reaches a certain (configurable) threshold value of total
XP earned in a specific skill, his earned XP in this skill will be
decreased.
Depending on how far the player has exceeded the threshold value, his
XP will decrease more. After the (configurable) time interval of 10
minutes, the registered data will be cleared and the player can earn XP
as normal again.
This commit changes our shared connection into a connection pool utility to prevent
thread locks from multiple actions attempting to access the database at the same time.
In additon, profile loading has been moved off the main thread at login time, to
allieviate the performance issues caused by it.
Fixes#2138, Fixes#2119, Fixes#1982, Fixes#1953
- Special thanks, instead of in dev team
- Fix formatting issues
* Remove trailing whitespaces
* Rename method names of event listeners
* Check for negative instead of positive
- Added Alchemy skill guide
* Print proper file names to the console when the date could not be
determined
* Skip all directories
* Skip every file that doesn’t have .zip in the file name
Week numbers are obviously the same every year, we need to check the
year as well as the week number to determine if we should keep the
backup file or not.
By default mcMMO keeps the following files:
* All files from the last 24 hours
* Daily backups of the past week
* Weekly backups of the past months
Adds #1574