Skip to content

Commit

Permalink
new core support
Browse files Browse the repository at this point in the history
  • Loading branch information
LxHTT committed Jul 25, 2024
1 parent 346e999 commit f432652
Showing 1 changed file with 39 additions and 8 deletions.
47 changes: 39 additions & 8 deletions src/utils/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,20 @@ export function getCoreIcon(name: string) {
return 'https://img.fastmirror.net/s/2024/05/25/66516c242762e.png';
case 'Craftbukkit':
return 'https://img.fastmirror.net/s/2024/05/25/66516c22db66a.png';
case 'Akarin':
return 'https://img.fastmirror.net/s/2024/07/25/66a2214b5c073.png';
case 'NukkitX':
return 'https://img.fastmirror.net/s/2024/07/25/66a2219eb31e3.png';
case 'Thermos':
return 'https://img.fastmirror.net/s/2024/07/25/66a22284b2d93.png';
case 'Contigo':
return 'https://img.fastmirror.net/s/2024/07/25/66a2239b8c363.jpg';
case 'Luminol':
case 'LightingLuminol':
return 'https://img.fastmirror.net/s/2024/07/25/66a223e527e01.png';
case 'Geyser':
case 'Floodgate':
return 'https://img.fastmirror.net/s/2024/07/25/66a224168f38e.png';
default:
return 'https://img.fastmirror.net/s/2024/05/25/6651673f05405.png';
}
Expand All @@ -68,32 +82,49 @@ export function getCoreType(name: string) {
case 'Banner':
case 'Mohist':
case 'CatServer':
case 'Thermos':
case 'Contigo':
return '混合端';

case 'BungeeCord':
case 'Lightfall':
case 'LightfallClient':
case 'Travertine':
case 'Velocity':
case 'Waterfall':
return '群组端';

case 'Craftbukkit':
case "Folia":
case 'Folia':
case 'Leaves':
case "Paper":
case "Pufferfish":
case "Pufferfish+":
case "Pufferfish+Purpur":
case "Purformance":
case "Purpur":
case "Spigot":
case 'Paper':
case 'Pufferfish':
case 'Pufferfish+':
case 'Pufferfish+Purpur':
case 'Purformance':
case 'Purpur':
case 'Spigot':
case 'Akarin':
case 'Luminol':
case 'LightingLuminol':
return '插件端';

case 'Fabric':
case 'Forge':
case 'SpongeForge':
case 'SpongeVanilla':
return '模组端';

case 'Vanilla':
return '纯净端';

case 'NukkitX':
return '基岩版';

case 'Geyser':
case 'Floodgate':
return '代理端';

default:
return '未知';
}
Expand Down

0 comments on commit f432652

Please sign in to comment.