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;
|
||
|
}
|
||
|
|
||
|
}
|