attackstyles: Simplify config descriptions
This commit is contained in:
@@ -48,11 +48,11 @@ public interface AttackStylesConfig extends Config
|
|||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "warnForDefensive",
|
keyName = "warnForDefensive",
|
||||||
name = "Warn for defensive",
|
name = "Warn for defence",
|
||||||
description = "Configures whether or not users are warned for selecting a defensive combat option",
|
description = "Show warning when a Defence skill combat option is selected",
|
||||||
position = 2
|
position = 2
|
||||||
)
|
)
|
||||||
default boolean warnForDefensive()
|
default boolean warnForDefence()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -60,7 +60,7 @@ public interface AttackStylesConfig extends Config
|
|||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "warnForAttack",
|
keyName = "warnForAttack",
|
||||||
name = "Warn for attack",
|
name = "Warn for attack",
|
||||||
description = "Configures whether or not users are warned for selecting an attack combat option",
|
description = "Show warning when an Attack skill combat option is selected",
|
||||||
position = 3
|
position = 3
|
||||||
)
|
)
|
||||||
default boolean warnForAttack()
|
default boolean warnForAttack()
|
||||||
@@ -71,7 +71,7 @@ public interface AttackStylesConfig extends Config
|
|||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "warnForStrength",
|
keyName = "warnForStrength",
|
||||||
name = "Warn for strength",
|
name = "Warn for strength",
|
||||||
description = "Configures whether or not users are warned for selecting a strength combat option",
|
description = "Show warning when a Strength skill combat option is selected",
|
||||||
position = 4
|
position = 4
|
||||||
)
|
)
|
||||||
default boolean warnForStrength()
|
default boolean warnForStrength()
|
||||||
@@ -82,7 +82,7 @@ public interface AttackStylesConfig extends Config
|
|||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "warnForRanged",
|
keyName = "warnForRanged",
|
||||||
name = "Warn for ranged",
|
name = "Warn for ranged",
|
||||||
description = "Configures whether or not users are warned for selecting a ranged combat option",
|
description = "Show warning when a Ranged skill combat option is selected",
|
||||||
position = 5
|
position = 5
|
||||||
)
|
)
|
||||||
default boolean warnForRanged()
|
default boolean warnForRanged()
|
||||||
@@ -93,7 +93,7 @@ public interface AttackStylesConfig extends Config
|
|||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "warnForMagic",
|
keyName = "warnForMagic",
|
||||||
name = "Warn for magic",
|
name = "Warn for magic",
|
||||||
description = "Configures whether or not users are warned for selecting a magic combat option",
|
description = "Show warning when a Magic skill combat option is selected",
|
||||||
position = 6
|
position = 6
|
||||||
)
|
)
|
||||||
default boolean warnForMagic()
|
default boolean warnForMagic()
|
||||||
@@ -104,7 +104,7 @@ public interface AttackStylesConfig extends Config
|
|||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "removeWarnedStyles",
|
keyName = "removeWarnedStyles",
|
||||||
name = "Remove warned styles",
|
name = "Remove warned styles",
|
||||||
description = "Configures whether or not warned styles are removed from the combat options tab",
|
description = "Remove warned styles from the combat options tab",
|
||||||
position = 7
|
position = 7
|
||||||
)
|
)
|
||||||
default boolean removeWarnedStyles()
|
default boolean removeWarnedStyles()
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ public class AttackStylesPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
updateWarnedSkills(config.warnForAttack(), Skill.ATTACK);
|
updateWarnedSkills(config.warnForAttack(), Skill.ATTACK);
|
||||||
updateWarnedSkills(config.warnForStrength(), Skill.STRENGTH);
|
updateWarnedSkills(config.warnForStrength(), Skill.STRENGTH);
|
||||||
updateWarnedSkills(config.warnForDefensive(), Skill.DEFENCE);
|
updateWarnedSkills(config.warnForDefence(), Skill.DEFENCE);
|
||||||
updateWarnedSkills(config.warnForRanged(), Skill.RANGED);
|
updateWarnedSkills(config.warnForRanged(), Skill.RANGED);
|
||||||
updateWarnedSkills(config.warnForMagic(), Skill.MAGIC);
|
updateWarnedSkills(config.warnForMagic(), Skill.MAGIC);
|
||||||
updateAttackStyle(
|
updateAttackStyle(
|
||||||
@@ -164,7 +164,7 @@ public class AttackStylesPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
updateWarnedSkills(config.warnForAttack(), Skill.ATTACK);
|
updateWarnedSkills(config.warnForAttack(), Skill.ATTACK);
|
||||||
updateWarnedSkills(config.warnForStrength(), Skill.STRENGTH);
|
updateWarnedSkills(config.warnForStrength(), Skill.STRENGTH);
|
||||||
updateWarnedSkills(config.warnForDefensive(), Skill.DEFENCE);
|
updateWarnedSkills(config.warnForDefence(), Skill.DEFENCE);
|
||||||
updateWarnedSkills(config.warnForRanged(), Skill.RANGED);
|
updateWarnedSkills(config.warnForRanged(), Skill.RANGED);
|
||||||
updateWarnedSkills(config.warnForMagic(), Skill.MAGIC);
|
updateWarnedSkills(config.warnForMagic(), Skill.MAGIC);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user