package stream.flarebot.flarebot.mod.modlog;

public enum ModAction {

    BAN(true, ModlogEvent.USER_BANNED),
    FORCE_BAN(true, ModlogEvent.USER_BANNED),
    TEMP_BAN(true, ModlogEvent.USER_TEMP_BANNED),
    UNBAN(false, ModlogEvent.USER_UNBANNED),

    KICK(true, ModlogEvent.USER_KICKED),

    TEMP_MUTE(true, ModlogEvent.USER_TEMP_MUTED),
    MUTE(true, ModlogEvent.USER_TEMP_MUTED),
    UNMUTE(false, ModlogEvent.USER_TEMP_MUTED),

    WARN(true, ModlogEvent.USER_TEMP_MUTED);

    private boolean infraction;
    private ModlogEvent event;

    ModAction(boolean infraction, ModlogEvent modlogEvent) {
        this.infraction = infraction;
        this.event = modlogEvent;
    }

    public boolean isInfraction() {
        return infraction;
    }

    @Override
    public String toString() {
        return name().charAt(0) + name().substring(1).toLowerCase().replaceAll("_", " ");
    }

    public String getLowercaseName() {
        return toString().toLowerCase();
    }

    public ModlogEvent getEvent() {
        return event;
    }
}

@@ -362,37 +362,32 @@
 odlogEvent.USER_
-TEMP_
 MUTED),%0A    UNMU
@@ -405,37 +405,34 @@
 odlogEvent.USER_
-TEMP_
+UN
 MUTED),%0A%0A    WAR
@@ -456,26 +456,20 @@
 nt.USER_
-TEMP_MUTED
+WARN
 );%0A%0A    

Copy and paste is the devil