combatlevel plugin: add option for showing precise combat level

This commit is contained in:
Lucas Snel
2020-04-09 17:59:54 -04:00
committed by GitHub
parent 10cd76897b
commit 45c229bc32
2 changed files with 11 additions and 1 deletions
@@ -41,6 +41,16 @@ public interface CombatLevelConfig extends Config
return true;
}
@ConfigItem(
keyName = "showPreciseCombatLevel",
name = "Show precise combat level",
description = "Displays your combat level with accurate decimals."
)
default boolean showPreciseCombatLevel()
{
return true;
}
@ConfigItem(
keyName = "wildernessAttackLevelRange",
name = "Show level range in wilderness",
@@ -125,7 +125,7 @@ public class CombatLevelPlugin extends Plugin
}
Widget combatLevelWidget = client.getWidget(WidgetInfo.COMBAT_LEVEL);
if (combatLevelWidget == null)
if (combatLevelWidget == null || !config.showPreciseCombatLevel())
{
return;
}