package com.github.steveice10.mc.protocol.data.message.style;

public enum ClickAction {
    RUN_COMMAND,
    SUGGEST_COMMAND,
    OPEN_URL,
    CHANGE_PAGE;

    public static ClickAction byName(String name) {
        String lowerCase = name.toLowerCase();
        for(ClickAction action : values()) {
            if(action.toString().equals(lowerCase)) {
                return action;
            }
        }

        return null;
    }

    @Override
    public String toString() {
        return this.name().toLowerCase();
    }
}

@@ -86,75 +86,83 @@
 n %7B%0A
-    RUN_COMMAND,%0A    SUGGEST_COMMAND,%0A    OPEN_URL,%0A    CHANGE_PAGE
+%09CHANGE_PAGE,%0A%09COPY_TO_CLIPBOARD,%0A%09OPEN_URL,%0A%09RUN_COMMAND,%0A%09SUGGEST_COMMAND
 ;%0A%0A 

Add COPY_TO_CLIPBOARD ClickAction