EpicKnarvik97
1906e593e3
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
33 lines
838 B
Java
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;
|
|
}
|
|
|
|
}
|