Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Voting Links #2833

Merged
merged 1 commit into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
]
}