package net.knarcraft.dynmapcitizens.settings; import org.bukkit.configuration.file.FileConfiguration; /** * All settings for the sentinel trait */ public class SentinelSettings extends AbstractTraitSettings { private boolean displaySentinelStats; @Override public void load(FileConfiguration configuration) { super.load(configuration); displaySentinelStats = configuration.getBoolean(getTraitConfigRoot() + ".displaySentinelStats", true); } @Override protected String getTraitConfigRoot() { return "traits.sentinel"; } /** * Gets whether to display information about a sentinel such as health, attack and targets in marker descriptions * * @return
True if sentinel stats should be displayed
*/ public boolean displaySentinelStats() { return displaySentinelStats; } }