Configurable XP cooldowns for Roll

This commit is contained in:
nossr50
2019-03-21 16:21:23 -07:00
parent d4d8cbbc03
commit 579109b2f5
2 changed files with 12 additions and 1 deletions

View File

@ -23,10 +23,11 @@ public class AcrobaticsManager extends SkillManager {
public AcrobaticsManager(McMMOPlayer mcMMOPlayer) {
super(mcMMOPlayer, PrimarySkillType.ACROBATICS);
rollXPInterval = (1000 * mcMMO.getConfigManager().getConfigExploitPrevention().getConfigSectionExploitAcrobatics().getRollXPGainCooldownSeconds());
}
private long rollXPCooldown = 0;
private long rollXPInterval = (1000 * 60); //1 Minute
private long rollXPInterval; //1 Minute
private long rollXPIntervalLengthen = (1000 * 10); //10 Seconds
public boolean canGainRollXP()