2022-11-03 14:14:24 +01:00
|
|
|
package net.knarcraft.dynmapcitizens.settings;
|
|
|
|
|
|
|
|
import org.bukkit.configuration.file.FileConfiguration;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* All settings for the sentinel trait
|
|
|
|
*/
|
|
|
|
public class SentinelSettings extends AbstractTraitSettings {
|
|
|
|
|
2022-11-03 14:24:18 +01:00
|
|
|
private boolean displaySentinelStats;
|
|
|
|
|
2022-11-03 14:14:24 +01:00
|
|
|
@Override
|
|
|
|
public void load(FileConfiguration configuration) {
|
|
|
|
super.load(configuration);
|
2022-11-03 14:24:18 +01:00
|
|
|
displaySentinelStats = configuration.getBoolean(getTraitConfigRoot() + ".displaySentinelStats", true);
|
2022-11-03 14:14:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected String getTraitConfigRoot() {
|
|
|
|
return "traits.sentinel";
|
|
|
|
}
|
|
|
|
|
2022-11-03 14:24:18 +01:00
|
|
|
/**
|
|
|
|
* 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;
|
|
|
|
}
|
|
|
|
|
2022-11-03 14:14:24 +01:00
|
|
|
}
|