removed InfoBarCommand and integrated InfoBars with Settings preference handling

This commit is contained in:
2025-10-03 15:30:36 +02:00
parent dc0003b91e
commit 324defc4a8
12 changed files with 89 additions and 58 deletions

View File

@@ -29,7 +29,7 @@ public class LocatorBar extends Appliance {
}
public void updateLocatorBar(Player player) {
boolean enabled = Settings.instance().getSetting(player, Settings.Key.LocatorBarConfig, Boolean.class);
boolean enabled = Settings.instance().getSetting(player, Settings.Key.LocatorBar, Boolean.class);
AttributeInstance receive = player.getAttribute(Attribute.WAYPOINT_RECEIVE_RANGE);
AttributeInstance transmit = player.getAttribute(Attribute.WAYPOINT_TRANSMIT_RANGE);

View File

@@ -13,7 +13,7 @@ public class LocatorBarSettings extends BoolSetting implements CategorizedSettin
}
public LocatorBarSettings() {
super(Settings.Key.LocatorBarConfig);
super(Settings.Key.LocatorBar);
}
@Override