Coflnet / SkyModCommands

Backend for minecraft frontend
GNU Affero General Public License v3.0
4 stars 4 forks source link

Support full tab upload #198

Closed Ekwav closed 2 months ago

Ekwav commented 3 months ago

uploadTab should support json format, also add nevobot adapter version

{
    "header": {
        "json": {
            "italic": false,
            "extra": [
                {
                    "color": "aqua",
                    "extra": [
                        {
                            "bold": true,
                            "color": "yellow",
                            "hoverEvent": {
                                "action": "show_text",
                                "value": {
                                    "text": "§c§lDo not trust unknown links!"
                                }
                            },
                            "text": "MC.HYPIXEL.NET"
                        }
                    ],
                    "text": "You are playing on "
                },
                {
                    "text": "\n"
                },
                {
                    "italic": false,
                    "extra": [
                        {
                            "text": ""
                        },
                        {
                            "bold": false,
                            "italic": false,
                            "underlined": false,
                            "obfuscated": false,
                            "strikethrough": false,
                            "extra": [
                                {
                                    "text": "§s"
                                }
                            ],
                            "text": ""
                        }
                    ],
                    "text": ""
                }
            ],
            "text": ""
        },
        "text": "",
        "extra": [
            {
                "json": {
                    "color": "aqua",
                    "extra": [
                        {
                            "bold": true,
                            "color": "yellow",
                            "hoverEvent": {
                                "action": "show_text",
                                "value": {
                                    "text": "§c§lDo not trust unknown links!"
                                }
                            },
                            "text": "MC.HYPIXEL.NET"
                        }
                    ],
                    "text": "You are playing on "
                },
                "text": "You are playing on ",
                "extra": [
                    {
                        "json": {
                            "bold": true,
                            "color": "yellow",
                            "hoverEvent": {
                                "action": "show_text",
                                "value": {
                                    "text": "§c§lDo not trust unknown links!"
                                }
                            },
                            "text": "MC.HYPIXEL.NET"
                        },
                        "text": "MC.HYPIXEL.NET",
                        "bold": true,
                        "color": "yellow",
                        "hoverEvent": {
                            "action": "show_text",
                            "value": {
                                "text": "§c§lDo not trust unknown links!"
                            }
                        }
                    }
                ],
                "color": "aqua"
            },
            {
                "json": {
                    "text": "\n"
                },
                "text": "\n"
            },
            {
                "json": {
                    "italic": false,
                    "extra": [
                        {
                            "text": ""
                        },
                        {
                            "bold": false,
                            "italic": false,
                            "underlined": false,
                            "obfuscated": false,
                            "strikethrough": false,
                            "extra": [
                                {
                                    "text": "§s"
                                }
                            ],
                            "text": ""
                        }
                    ],
                    "text": ""
                },
                "text": "",
                "extra": [
                    {
                        "json": {
                            "text": ""
                        },
                        "text": ""
                    },
                    {
                        "json": {
                            "bold": false,
                            "italic": false,
                            "underlined": false,
                            "obfuscated": false,
                            "strikethrough": false,
                            "extra": [
                                {
                                    "text": "§s"
                                }
                            ],
                            "text": ""
                        },
                        "text": "",
                        "extra": [
                            {
                                "json": {
                                    "text": "§s"
                                },
                                "text": "§s"
                            }
                        ],
                        "bold": false,
                        "italic": false,
                        "underlined": false,
                        "strikethrough": false,
                        "obfuscated": false
                    }
                ],
                "italic": false
            }
        ],
        "italic": false
    },
    "footer": {
        "json": {
            "italic": false,
            "extra": [
                {
                    "text": "\n"
                },
                {
                    "italic": false,
                    "extra": [
                        {
                            "bold": true,
                            "color": "green",
                            "text": "Active Effects"
                        }
                    ],
                    "text": ""
                },
                {
                    "text": "\n"
                },
                {
                    "italic": false,
                    "extra": [
                        {
                            "color": "gray",
                            "text": "You have a "
                        },
                        {
                            "color": "red",
                            "text": "God Potion "
                        },
                        {
                            "color": "gray",
                            "text": "active! "
                        },
                        {
                            "color": "light_purple",
                            "text": "10 Hours"
                        }
                    ],
                    "text": ""
                },
                {
                    "text": "\n"
                },
                {
                    "italic": false,
                    "extra": [
                        {
                            "color": "gray",
                            "text": "Use \""
                        },
                        {
                            "color": "gold",
                            "text": "/effects"
                        },
                        {
                            "color": "gray",
                            "text": "\" to see the effects!"
                        }
                    ],
                    "text": ""
                },
                {
                    "text": "\n"
                },
                {
                    "italic": false,
                    "extra": [
                        {
                            "text": ""
                        },
                        {
                            "bold": false,
                            "italic": false,
                            "underlined": false,
                            "obfuscated": false,
                            "strikethrough": false,
                            "extra": [
                                {
                                    "text": "§s"
                                }
                            ],
                            "text": ""
                        }
                    ],
                    "text": ""
                },
                {
                    "text": "\n"
                },
                {
                    "italic": false,
                    "extra": [
                        {
                            "bold": true,
                            "color": "light_purple",
                            "text": "Cookie Buff"
                        }
                    ],
                    "text": ""
                },
                {
                    "text": "\n"
                },
                {
                    "italic": false,
                    "extra": [
                        {
                            "color": "white",
                            "text": "1 day, 10 hours"
                        }
                    ],
                    "text": ""
                },
                {
                    "text": "\n"
                },
                {
                    "italic": false,
                    "extra": [
                        {
                            "text": ""
                        },
                        {
                            "bold": false,
                            "italic": false,
                            "underlined": false,
                            "obfuscated": false,
                            "strikethrough": false,
                            "extra": [
                                {
                                    "text": "§s"
                                }
                            ],
                            "text": ""
                        }
                    ],
                    "text": ""
                },
                {
                    "text": "\n"
                },
                {
                    "italic": false,
                    "extra": [
                        {
                            "color": "green",
                            "extra": [
                                {
                                    "bold": true,
                                    "color": "red",
                                    "hoverEvent": {
                                        "action": "show_text",
                                        "value": {
                                            "text": "§c§lDo not trust unknown links!"
                                        }
                                    },
                                    "text": "STORE.HYPIXEL.NET"
                                }
                            ],
                            "text": "Ranks, Boosters & MORE! "
                        }
                    ],
                    "text": ""
                }
            ],
            "text": ""
        },
        "text": "",
        "extra": [
            {
                "json": {
                    "text": "\n"
                },
                "text": "\n"
            },
            {
                "json": {
                    "italic": false,
                    "extra": [
                        {
                            "bold": true,
                            "color": "green",
                            "text": "Active Effects"
                        }
                    ],
                    "text": ""
                },
                "text": "",
                "extra": [
                    {
                        "json": {
                            "bold": true,
                            "color": "green",
                            "text": "Active Effects"
                        },
                        "text": "Active Effects",
                        "bold": true,
                        "color": "green"
                    }
                ],
                "italic": false
            },
            {
                "json": {
                    "text": "\n"
                },
                "text": "\n"
            },
            {
                "json": {
                    "italic": false,
                    "extra": [
                        {
                            "color": "gray",
                            "text": "You have a "
                        },
                        {
                            "color": "red",
                            "text": "God Potion "
                        },
                        {
                            "color": "gray",
                            "text": "active! "
                        },
                        {
                            "color": "light_purple",
                            "text": "10 Hours"
                        }
                    ],
                    "text": ""
                },
                "text": "",
                "extra": [
                    {
                        "json": {
                            "color": "gray",
                            "text": "You have a "
                        },
                        "text": "You have a ",
                        "color": "gray"
                    },
                    {
                        "json": {
                            "color": "red",
                            "text": "God Potion "
                        },
                        "text": "God Potion ",
                        "color": "red"
                    },
                    {
                        "json": {
                            "color": "gray",
                            "text": "active! "
                        },
                        "text": "active! ",
                        "color": "gray"
                    },
                    {
                        "json": {
                            "color": "light_purple",
                            "text": "10 Hours"
                        },
                        "text": "10 Hours",
                        "color": "light_purple"
                    }
                ],
                "italic": false
            },
            {
                "json": {
                    "text": "\n"
                },
                "text": "\n"
            },
            {
                "json": {
                    "italic": false,
                    "extra": [
                        {
                            "color": "gray",
                            "text": "Use \""
                        },
                        {
                            "color": "gold",
                            "text": "/effects"
                        },
                        {
                            "color": "gray",
                            "text": "\" to see the effects!"
                        }
                    ],
                    "text": ""
                },
                "text": "",
                "extra": [
                    {
                        "json": {
                            "color": "gray",
                            "text": "Use \""
                        },
                        "text": "Use \"",
                        "color": "gray"
                    },
                    {
                        "json": {
                            "color": "gold",
                            "text": "/effects"
                        },
                        "text": "/effects",
                        "color": "gold"
                    },
                    {
                        "json": {
                            "color": "gray",
                            "text": "\" to see the effects!"
                        },
                        "text": "\" to see the effects!",
                        "color": "gray"
                    }
                ],
                "italic": false
            },
            {
                "json": {
                    "text": "\n"
                },
                "text": "\n"
            },
            {
                "json": {
                    "italic": false,
                    "extra": [
                        {
                            "text": ""
                        },
                        {
                            "bold": false,
                            "italic": false,
                            "underlined": false,
                            "obfuscated": false,
                            "strikethrough": false,
                            "extra": [
                                {
                                    "text": "§s"
                                }
                            ],
                            "text": ""
                        }
                    ],
                    "text": ""
                },
                "text": "",
                "extra": [
                    {
                        "json": {
                            "text": ""
                        },
                        "text": ""
                    },
                    {
                        "json": {
                            "bold": false,
                            "italic": false,
                            "underlined": false,
                            "obfuscated": false,
                            "strikethrough": false,
                            "extra": [
                                {
                                    "text": "§s"
                                }
                            ],
                            "text": ""
                        },
                        "text": "",
                        "extra": [
                            {
                                "json": {
                                    "text": "§s"
                                },
                                "text": "§s"
                            }
                        ],
                        "bold": false,
                        "italic": false,
                        "underlined": false,
                        "strikethrough": false,
                        "obfuscated": false
                    }
                ],
                "italic": false
            },
            {
                "json": {
                    "text": "\n"
                },
                "text": "\n"
            },
            {
                "json": {
                    "italic": false,
                    "extra": [
                        {
                            "bold": true,
                            "color": "light_purple",
                            "text": "Cookie Buff"
                        }
                    ],
                    "text": ""
                },
                "text": "",
                "extra": [
                    {
                        "json": {
                            "bold": true,
                            "color": "light_purple",
                            "text": "Cookie Buff"
                        },
                        "text": "Cookie Buff",
                        "bold": true,
                        "color": "light_purple"
                    }
                ],
                "italic": false
            },
            {
                "json": {
                    "text": "\n"
                },
                "text": "\n"
            },
            {
                "json": {
                    "italic": false,
                    "extra": [
                        {
                            "color": "white",
                            "text": "1 day, 10 hours"
                        }
                    ],
                    "text": ""
                },
                "text": "",
                "extra": [
                    {
                        "json": {
                            "color": "white",
                            "text": "1 day, 10 hours"
                        },
                        "text": "1 day, 10 hours",
                        "color": "white"
                    }
                ],
                "italic": false
            },
            {
                "json": {
                    "text": "\n"
                },
                "text": "\n"
            },
            {
                "json": {
                    "italic": false,
                    "extra": [
                        {
                            "text": ""
                        },
                        {
                            "bold": false,
                            "italic": false,
                            "underlined": false,
                            "obfuscated": false,
                            "strikethrough": false,
                            "extra": [
                                {
                                    "text": "§s"
                                }
                            ],
                            "text": ""
                        }
                    ],
                    "text": ""
                },
                "text": "",
                "extra": [
                    {
                        "json": {
                            "text": ""
                        },
                        "text": ""
                    },
                    {
                        "json": {
                            "bold": false,
                            "italic": false,
                            "underlined": false,
                            "obfuscated": false,
                            "strikethrough": false,
                            "extra": [
                                {
                                    "text": "§s"
                                }
                            ],
                            "text": ""
                        },
                        "text": "",
                        "extra": [
                            {
                                "json": {
                                    "text": "§s"
                                },
                                "text": "§s"
                            }
                        ],
                        "bold": false,
                        "italic": false,
                        "underlined": false,
                        "strikethrough": false,
                        "obfuscated": false
                    }
                ],
                "italic": false
            },
            {
                "json": {
                    "text": "\n"
                },
                "text": "\n"
            },
            {
                "json": {
                    "italic": false,
                    "extra": [
                        {
                            "color": "green",
                            "extra": [
                                {
                                    "bold": true,
                                    "color": "red",
                                    "hoverEvent": {
                                        "action": "show_text",
                                        "value": {
                                            "text": "§c§lDo not trust unknown links!"
                                        }
                                    },
                                    "text": "STORE.HYPIXEL.NET"
                                }
                            ],
                            "text": "Ranks, Boosters & MORE! "
                        }
                    ],
                    "text": ""
                },
                "text": "",
                "extra": [
                    {
                        "json": {
                            "color": "green",
                            "extra": [
                                {
                                    "bold": true,
                                    "color": "red",
                                    "hoverEvent": {
                                        "action": "show_text",
                                        "value": {
                                            "text": "§c§lDo not trust unknown links!"
                                        }
                                    },
                                    "text": "STORE.HYPIXEL.NET"
                                }
                            ],
                            "text": "Ranks, Boosters & MORE! "
                        },
                        "text": "Ranks, Boosters & MORE! ",
                        "extra": [
                            {
                                "json": {
                                    "bold": true,
                                    "color": "red",
                                    "hoverEvent": {
                                        "action": "show_text",
                                        "value": {
                                            "text": "§c§lDo not trust unknown links!"
                                        }
                                    },
                                    "text": "STORE.HYPIXEL.NET"
                                },
                                "text": "STORE.HYPIXEL.NET",
                                "bold": true,
                                "color": "red",
                                "hoverEvent": {
                                    "action": "show_text",
                                    "value": {
                                        "text": "§c§lDo not trust unknown links!"
                                    }
                                }
                            }
                        ],
                        "color": "green"
                    }
                ],
                "italic": false
            }
        ],
        "italic": false
    }
}
Ekwav commented 2 months ago

drop the idea, replace by runsequence fix