feat: add a partner tag for CoreBoxx

This commit is contained in:
dvelo 2025-01-12 10:29:09 -06:00
parent 9765548277
commit 7fe52d6c47

@ -99,6 +99,15 @@ export const allTags: Array<{
role: "secondary", role: "secondary",
__filter: true, __filter: true,
}, },
{
name: async () => "Partner",
condition: async (s) => s.name === "CoreBoxx",
tooltipDesc: "This server is a partner with MHSF.",
docsName: "Partner",
htmlDocs: "This tag represents that this server is a partner with MHSF.",
primary: true,
role: "purple",
},
// deprecated // deprecated
/**{ /**{
name: async () => "Velocity", name: async () => "Velocity",
@ -280,7 +289,7 @@ export const allCategories: Array<{
async function requestServer(s: OnlineServer): Promise<ServerResponse> { async function requestServer(s: OnlineServer): Promise<ServerResponse> {
if (serverCache[s.name] === undefined) { if (serverCache[s.name] === undefined) {
const re = await fetch( const re = await fetch(
"https://api.minehut.com/server/" + s.name + "?byName=true", "https://api.minehut.com/server/" + s.name + "?byName=true"
); );
const json = await re.json(); const json = await re.json();
serverCache[s.name] = json.server; serverCache[s.name] = json.server;