diff --git a/servers/server_list.js b/servers/server_list.js index cc06f26..32a0497 100644 --- a/servers/server_list.js +++ b/servers/server_list.js @@ -10,10 +10,11 @@ function copyToClipboard(text, button) { }); } -// Function to create a server card // Function to create a server card function createServerCard(server, isNew = false) { const ownerName = server.ops && server.ops.length > 0 ? server.ops[0].name : 'Unknown'; + // Prefer connect2 if it's a my-mc.link subdomain, otherwise use connect + const displayConnect = server.connect2 && server.connect2.includes('.my-mc.link') ? server.connect2 : server.connect; const serverCard = document.createElement('div'); serverCard.className = `feature-card tilt-card ${isNew ? 'new-server-animation' : ''}`; serverCard.dataset.connect = server.connect; // Add identifier @@ -29,8 +30,8 @@ function createServerCard(server, isNew = false) {

Status: ${server.online ? 'Online' : 'Offline'}

Connect: - ${server.connect} -
+
+

+ Subdomain Registration +

+

+ My-MC.Link now supports SRV record registration, allowing you to use a custom subdomain (e.g., raven.my-mc.link) as your server's connection string for a more personalized and user-friendly experience. +

+

Key Features

+ +

How to Register a Subdomain

+

+ To register a subdomain, run the following command in-game (replace raven with your desired subdomain): +

+

+ /srv-register subdomain: raven +

+

+ Once registered, you can connect to your server using your custom subdomain, e.g., raven.my-mc.link. +

+

Changing or Deleting a Subdomain

+

+ To delete your current SRV record and register a new subdomain: +

+
    +
  1. Delete the existing record:
    + /srv-delete +
  2. +
  3. Register a new subdomain:
    + /srv-register subdomain: +
  4. +
+
+