mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +02:00
Add setting for ignoring attack cooldown Fixes #5048
This commit is contained in:
@ -409,6 +409,10 @@ public class AdvancedConfig extends BukkitConfig {
|
||||
|
||||
/* GENERAL */
|
||||
|
||||
public boolean useAttackCooldown() {
|
||||
return config.getBoolean("Skills.General.Attack_Cooldown.Adjust_Skills_For_Attack_Cooldown", true);
|
||||
}
|
||||
|
||||
public boolean canApplyLimitBreakPVE() {
|
||||
return config.getBoolean("Skills.General.LimitBreak.AllowPVE", false);
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ package com.gmail.nossr50.datatypes.player;
|
||||
|
||||
import com.gmail.nossr50.api.exceptions.InvalidSkillException;
|
||||
import com.gmail.nossr50.chat.author.PlayerAuthor;
|
||||
import com.gmail.nossr50.config.AdvancedConfig;
|
||||
import com.gmail.nossr50.config.ChatConfig;
|
||||
import com.gmail.nossr50.config.WorldBlacklist;
|
||||
import com.gmail.nossr50.config.experience.ExperienceConfig;
|
||||
@ -239,7 +240,11 @@ public class McMMOPlayer implements Identified {
|
||||
}
|
||||
|
||||
public double getAttackStrength() {
|
||||
return player.getAttackCooldown();
|
||||
if (mcMMO.p.getAdvancedConfig().useAttackCooldown()) {
|
||||
return player.getAttackCooldown();
|
||||
} else {
|
||||
return 1.0D;
|
||||
}
|
||||
}
|
||||
|
||||
public @NotNull PrimarySkillType getLastSkillShownScoreboard() {
|
||||
|
Reference in New Issue
Block a user