@Override
public void saveValue(String path, FileConfiguration config) {
config.set(path + "." + getName(), getFlag());
}
@Override
<BUG>public void loadValue(String path, FileConfiguration config) {
setFlag(config.getString(path + "." + getName()));
}</BUG>
@Override
public MenuItem getMenuItem(String name, Material displayItem) {

@Override
public void saveValue(String path, FileConfiguration config) {
config.set(path + "." + getName(), getFlag());
}
@Override
public void loadValue(String path, FileConfiguration config) {
if (config.contains(path + "." + getName())) {
setFlag(config.getString(path + "." + getName()));
} else {
setFlag(getDefaultFlag());
}
}
@Override
public MenuItem getMenuItem(String name, Material displayItem) {
