DynmapCitizens/src/main/java/net/knarcraft/dynmapcitizens/settings/MinstrelSettings.java
EpicKnarvik97 1906e593e3 Implements configuration for common configuration values
Makes "enabled", marker set id, marker set priority, hide markers by default and marker set name configurable for all trait handlers.
Makes "displayMinstrelSongs" configurable for minstrels
2022-11-03 14:14:24 +01:00

33 lines
838 B
Java

package net.knarcraft.dynmapcitizens.settings;
import org.bukkit.configuration.file.FileConfiguration;
/**
* All settings for the minstrel trait
*/
public class MinstrelSettings extends AbstractTraitSettings {
private boolean displayMinstrelSongs;
@Override
public void load(FileConfiguration configuration) {
super.load(configuration);
displayMinstrelSongs = configuration.getBoolean(getTraitConfigRoot() + ".displayMinstrelSongs", true);
}
@Override
protected String getTraitConfigRoot() {
return "traits.minstrel";
}
/**
* Gets whether a minstrel's songs should be displayed in their description
*
* @return <p>True if minstrel songs should be displayed</p>
*/
public boolean displayMinstrelSongs() {
return displayMinstrelSongs;
}
}