You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
messages[server_id].append(f"The primary address' domain ({primary_domain.fld}) is not in the addresses list. Or the primary address is not a valid domain.")
255
+
elifprimary_domainisNone:
256
+
messages[server_id].append(f"The primary address `{server.get('primaryAddress', '')}` is not a valid domain. Please review the [documentation](https://lunarclient.dev/server-mappings/adding-servers/metadata).")
messages[server_id].append(f"The domain {domain.fld} belongs to a hosting provider. You must use a custom domain that you fully own (e.g. myserver.com instead of myserver.hosting.com). Please review the [documentation](https://lunarclient.dev/server-mappings/adding-servers/metadata#addresses).")
273
+
257
274
ifdomainisnotNoneanddomain.subdomain:
258
275
messages[server_id].append(f"{address} does not follow the [documentation](https://lunarclient.dev/server-mappings/adding-servers/metadata). Please make sure the address is a valid domain, and does not have a subdomain.")
276
+
277
+
ifdomainisnotNoneanddomain.fldinseen_domains:
278
+
messages[server_id].append(f"The domain {domain.fld} is also present in {', '.join(map(lambdas: f"`{s}`", seen_domains[domain.fld]))}. Please ensure each server has a unique domain(s).")
279
+
elifdomainisnotNone:
280
+
seen_domains[domain.fld].add(server_id)
281
+
else:
282
+
messages[server_id].append(f"`{address}` is not a valid domain. Please review the [documentation](https://lunarclient.dev/server-mappings/adding-servers/metadata).")
Copy file name to clipboardExpand all lines: docs/adding-servers/metadata.mdx
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
import { Callout } from"nextra/components";
2
+
1
3
# Server Metadata
2
4
3
5
Each server must have a `metadata.json`, this file should follow the schema found in the root of this repository `metadata.schema.json`.
@@ -30,6 +32,11 @@ The `addresses` array in each server object is actually an array of IP suffixes.
30
32
31
33
The `primaryAddress` in each server object is for users to connect to your server on and is required to be resolvable. This primary address will be used to ensure that the server remains online and active. **This can (and should) include the subdomain for the server**.
32
34
35
+
<Callouttype="warning"emoji="⚠️">
36
+
Make sure that you own the root domain you want to submit. We do not support domains provided by hosting services (e.g. `myserver.host.com`). You must purchase and configure your own custom domain (e.g. `myserver.com`).
37
+
</Callout>
38
+
39
+
33
40
### Game Types
34
41
35
42
Game types help identify the style of games that your server will offer to player. The following are games you may include: `PvP`, `PvE`, `HCF`, `Factions`, `Minigames`, `Skyblock`, `Parkour`, `UHC`, `Hardcore`, `Survival`, `Open World`, `Prison`, `Creative`, `Roleplay`, `Adventure`, and `Pixelmon`.
0 commit comments