Skip to content

Commit

Permalink
feat: add votingLinks field
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatKawaiiSam committed Sep 5, 2024
1 parent 2bfae0a commit b2bff9b
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
- [ ] `gameTypes`: a list of games that describe the content on your server, must be a max of 3 listed _(ez. `["PVP", "UHC", "HCF"]`)_
- [ ] `crossplay`: whether the server has support for Bedrock Edition players (through proxies such as [GeyserMC](https://geysermc.org/))
- [ ] (optional) `presentationVideo`: YouTube video ID (in slug) to server trailer / introduction _(ex. `7EV4cPuJvXE`)_
- [ ] (optional) `votingLinks`: an array of urls to your server's listing on voting websites _(ex. `["https://minecraft-mp.com/server-s179012"]`)_
- [ ] (optional) `website`: url of server website, must include URL schema (http:// or https://) _(ex. `https://www.your-server.com`)_
- [ ] (optional) `store`: url of server store, must include URL schema (http:// or https://) _(ex. `https://store.your-server.com`)_
- [ ] (optional) `wiki`: url of server wiki, must include URL schema (http:// or https://) _(ex. `https://wiki.your-server.com`)_
Expand Down
3 changes: 2 additions & 1 deletion .scripts/create_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def main():
"presentationVideo",
"modpack",
"tebexStore",
"images"
"images",
"votingLinks",
],
)
writer.writeheader()
Expand Down
12 changes: 12 additions & 0 deletions docs/adding-servers/metadata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,15 @@ You can provide any social media links that you would like to be displayed on yo
- `reddit`
- `tiktok`
- `facebook`

### Voting Links

You can provide any voting links that you would like to be displayed on your server's page. These should be under the `votingLinks` key.

> Note: These links should be the actual listing of the server, rather than the voting tab of said listing.
Example:

| ❌ Incorrect | ✅ Correct |
| ------------------------------------------ | -------------------------------------------- |
| `https://minecraftservers.org/vote/467177` | `https://minecraftservers.org/server/467177` |
6 changes: 6 additions & 0 deletions metadata.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@
"merch": {
"$ref": "#/definitions/WebAddress"
},
"votingLinks": {
"type": "array",
"items": {
"$ref": "#/definitions/WebAddress"
}
},
"compliance": {
"type": "object",
"additionalProperties": false,
Expand Down
16 changes: 14 additions & 2 deletions servers/complex/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,17 @@
],
"socials": {
"discord": "https://discord.gg/ComplexVanilla"
}
}
},
"votingLinks": [
"https://best-minecraft-servers.co/server-complex-gaming.2763",
"https://minecraftservers.org/server/467177",
"https://topminecraftservers.org/server/2515",
"https://minecraft-server-list.com/server/411920",
"https://servers-minecraft.net/server-complex-gaming-1-21.58",
"https://minecraft-mp.com/server-s179012",
"https://play-minecraft-servers.com/minecraft-servers/complex-gaming",
"https://minecraftpocket-servers.com/server/120962/",
"https://www.curseforge.com/servers/minecraft/game/complex-gaming",
"https://minecraftbestservers.com/server-complex-gaming.77"
]
}

1 comment on commit b2bff9b

@LunarClientBot
Copy link
Collaborator

@LunarClientBot LunarClientBot commented on b2bff9b Oct 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📄 Documentation Deployment

Status:✅ Completed
Environment:preview
URL:https://d828826e.lunarclient-dev.pages.dev

Please sign in to comment.