Add self-hostable jukebox voting web page
Build / build (push) Successful in 1m17s

This commit is contained in:
Michael Burgess
2026-08-07 11:51:21 -04:00
parent bdb18f9952
commit 8049aa04af
2 changed files with 748 additions and 0 deletions
+9
View File
@@ -224,6 +224,15 @@ jukebox:
# ... id|label pairs; "id" must be a valid Bukkit Sound enum name
```
**The voting page:** [`web/jukebox.html`](web/jukebox.html) in this repo is a ready-to-use,
dependency-free static page implementing all of this — self-host it anywhere (same reverse
proxy as the API, GitHub Pages, S3, or just open the file locally for testing). It asks the
player for your server's HTTPS address once (saved in their browser), then for their vote
code, then shows arenas as tabs and tracks as clickable "discs" with a live vote tally that
polls every few seconds. A live preview of the same page: https://claude.ai/code/artifact/bfed1aa7-8040-47bc-a55b-970c07f83c4f
(hosted for previewing the UI only — point it at your own server's address to actually vote;
it won't work against a plain-HTTP address for the mixed-content reason above).
**How it works:**
1. A player runs `/blockparty musicvote` in-game and gets a short numeric code (valid for