package mnm.mods.tabbychat.settings;

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

import com.google.gson.GsonBuilder;

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> unreadFlashing = new SettingValue<Boolean>(true);
    public SettingValue<Boolean> checkUpdates = new SettingValue<Boolean>(true);

    public GeneralSettings() {
        super("general");

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

    @Override
    protected void setupGson(GsonBuilder builder) {
        builder.registerTypeAdapter(EnumChatFormatting.class, new FormattingSerializer());
    }
}

@@ -62,36 +62,26 @@
 at.util.
-FormattingSerializer
+TimeStamps
 ;%0Aimport
@@ -102,33 +102,34 @@
 ychat.util.T
-imeStamps
+ranslation
 ;%0Aimport mnm
@@ -204,45 +204,8 @@
 g;%0A%0A
-import com.google.gson.GsonBuilder;%0A%0A
 publ
@@ -822,32 +822,207 @@
 oolean%3E(false);%0A
+    public SettingValue%3CBoolean%3E antiSpamPartial = new SettingValue%3CBoolean%3E(true);%0A    public SettingValue%3CFloat%3E antiSpamPartialAmount = new SettingValue%3CFloat%3E(0.08f);    %0A
     public Setti
@@ -1219,17 +1219,48 @@
 per(
-%22general%22
+Translation.SETTINGS_GENERAL.translate()
 );%0A%0A
@@ -1602,258 +1602,228 @@
 ng(%22
-unreadFlashing%22, unreadFlashing);%0A        registerSetting(%22checkUpdates%22, checkUpdates
+antiSpamPartial%22, antiSpamPartial);%0A        registerSetting(%22antiSpamPartialAmount%22, antiSpamPartialAmount
 );%0A    
-%7D%0A%0A
     
-@Override%0A    protected void setupGson(GsonBuilder builder) %7B%0A        builder.registerTypeAdapter(EnumChatFormatting.class, new FormattingSerializer()
+registerSetting(%22unreadFlashing%22, unreadFlashing);%0A        registerSetting(%22checkUpdates%22, checkUpdates
 );%0A 

Update GeneralSettings.java