From 02efe1fa007da1a2a3dc5eaf43e448e9d9346712 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 2 Apr 2020 19:57:36 +1100 Subject: [PATCH] Update hosting-webclient.md --- misc/hosting-webclient.md | 69 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 67 insertions(+), 2 deletions(-) diff --git a/misc/hosting-webclient.md b/misc/hosting-webclient.md index 21a61b0d6..9b729992c 100644 --- a/misc/hosting-webclient.md +++ b/misc/hosting-webclient.md @@ -16,6 +16,71 @@ For simplicitly, The play.html page is the trickiest part, because how to implement it is website-specific. (depends on how your website is structured, what webserver you use, etc) -### Example play.html +#### Embedding the game in play.html -TODO +You are required to have this HTML code somewhere in the page: +```HTML + + + + + + +``` +**To start in singleplayer instead, change `arguments` to just `arguments: [ {username} ],`** + +##### Variables +* {username} - the player's username +* {mppass} - if server verifies names, [mppass](https://wiki.vg/Classic_Protocol#User_Authentication). Otherwise leave as `''`. +* {server ip} - the IP address of the server to connect to +* {server port} - the port on the server to connect on (usually `'25565'`) + +### Full example in flask + +TODO [other page here]