mirror of
https://github.com/DeveloLongScript/MHSF.git
synced 2026-05-07 16:05:00 -05:00
feat: add a partner tag for CoreBoxx
This commit is contained in:
parent
9765548277
commit
7fe52d6c47
@ -99,6 +99,15 @@ export const allTags: Array<{
|
||||
role: "secondary",
|
||||
__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
|
||||
/**{
|
||||
name: async () => "Velocity",
|
||||
@ -280,7 +289,7 @@ export const allCategories: Array<{
|
||||
async function requestServer(s: OnlineServer): Promise<ServerResponse> {
|
||||
if (serverCache[s.name] === undefined) {
|
||||
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();
|
||||
serverCache[s.name] = json.server;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user