DynmapCitizens/src/main/java/net/knarcraft/dynmapcitizens/settings/SentinelSettings.java

33 lines
876 B
Java

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 <p>True if sentinel stats should be displayed</p>
*/
public boolean displaySentinelStats() {
return displaySentinelStats;
}
}