messagesStatLeftSided = config.get("Helmet_Options" + Configuration.CATEGORY_SPLITTER + "Message_Stat", "stat leftsided", false).getBoolean(true);
}
@Override
public void saveToConfig(){
Configuration config = Config.config;
config.load();
if(powerStat != null) {
config.get("Helmet_Options" + Configuration.CATEGORY_SPLITTER + "Power_Stat", "stat X", -1).set(powerStat.getBaseX());
config.get("Helmet_Options" + Configuration.CATEGORY_SPLITTER + "Power_Stat", "stat Y", 2).set(powerStat.getBaseY());
config.get("Helmet_Options" + Configuration.CATEGORY_SPLITTER + "Power_Stat", "stat leftsided", true).set(powerStat.isLeftSided());
powerStatX = powerStat.getBaseX();
powerStatY = powerStat.getBaseY();
powerStatLeftSided = powerStat.isLeftSided();
}
if(testMessageStat != null) {
config.get("Helmet_Options" + Configuration.CATEGORY_SPLITTER + "Message_Stat", "stat X", 2).set(testMessageStat.getBaseX());
config.get("Helmet_Options" + Configuration.CATEGORY_SPLITTER + "Message_Stat", "stat Y", 2).set(testMessageStat.getBaseY());
config.get("Helmet_Options" + Configuration.CATEGORY_SPLITTER + "Message_Stat", "stat leftsided", false).set(testMessageStat.isLeftSided());
messagesStatX = testMessageStat.getBaseX();
messagesStatY = testMessageStat.getBaseY();
messagesStatLeftSided = testMessageStat.isLeftSided();
messagesStatX = testMessageStat.getBaseX();
messagesStatY = testMessageStat.getBaseY();
messagesStatLeftSided = testMessageStat.isLeftSided();
}
config.save();
}