package mnm.mods.tabbychat.settings;

import mnm.mods.tabbychat.util.TimeStamps;
import mnm.mods.tabbychat.util.Translation;
import mnm.mods.util.SettingValue;
import net.minecraft.util.EnumChatFormatting;

public class GeneralSettings extends TabbySettings {

    public SettingValue<Boolean> logChat = new SettingValue<Boolean>(true);
    public SettingValue<Boolean> splitLog = new SettingValue<Boolean>(true);
    public SettingValue<Boolean> timestampChat = new SettingValue<Boolean>(false);
    public SettingValue<TimeStamps> timestampStyle = new SettingValue<TimeStamps>(
            TimeStamps.MILITARYSECONDS);
    public SettingValue<EnumChatFormatting> timestampColor = new SettingValue<EnumChatFormatting>(
            EnumChatFormatting.WHITE);
    public SettingValue<Boolean> antiSpam = new SettingValue<Boolean>(false);
    public SettingValue<Boolean> antiSpamPartial = new SettingValue<Boolean>(true);
    public SettingValue<Float> antiSpamPartialAmount = new SettingValue<Float>(0.08f);    
    public SettingValue<Boolean> unreadFlashing = new SettingValue<Boolean>(true);
    public SettingValue<Boolean> checkUpdates = new SettingValue<Boolean>(true);

    public GeneralSettings() {
        super(Translation.SETTINGS_GENERAL.translate());

        registerSetting("logChat", logChat);
        registerSetting("splitLog", splitLog);
        registerSetting("timestampChat", timestampChat);
        registerSetting("timestampStyle", timestampStyle);
        registerSetting("timestampColor", timestampColor);
        registerSetting("antiSpam", antiSpam);
        registerSetting("antiSpamPartial", antiSpamPartial);
        registerSetting("antiSpamPartialAmount", antiSpamPartialAmount);
        registerSetting("unreadFlashing", unreadFlashing);
        registerSetting("checkUpdates", checkUpdates);
    }
}

@@ -62,26 +62,36 @@
 at.util.
-TimeStamps
+FormattingSerializer
 ;%0Aimport
@@ -116,26 +116,25 @@
 t.util.T
-ranslation
+imeStamps
 ;%0Aimport
@@ -209,16 +209,53 @@
 tting;%0A%0A
+import com.google.gson.GsonBuilder;%0A%0A
 public c
@@ -1047,19 +1047,16 @@
 0.08f); 
-   
 %0A    pub
@@ -1262,48 +1262,17 @@
 per(
-Translation.SETTINGS_GENERAL.translate()
+%22general%22
 );%0A%0A
@@ -1774,24 +1774,24 @@
 dFlashing);%0A
-
         regi
@@ -1838,11 +1838,175 @@
 );%0A    %7D
+%0A%0A    @Override%0A    protected void setupGson(GsonBuilder builder) %7B%0A        builder.registerTypeAdapter(EnumChatFormatting.class, new FormattingSerializer());%0A    %7D
 %0A%7D%0A

Update GeneralSettings.java