UNPKG

minecraft-protocol

Version:

Parse and serialize minecraft packets, plus authentication and encryption.

28 lines (21 loc) 833 B
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>client electron</title> </head> <body> <div> <p>Host: <input type="text" id="host" value="localhost" /></p> <p>Port: <input type="text" id="port" value="25565"/></p> <p>Account Type: <select onchange="onAuthTypeChange()" id='type'><option>Microsoft</option><option>Mojang</option></select></p> <p>Username: <input type="text" id="username" value="electron_client" /></p> <p>Password: <input type="text" id="password" value="" /></p> </div> <button id="connect" type="button">Connect</button><br /> <div id="content">Not connected</div> <br /> Message: <input type="text" id="chat" /><br /> <button id="send" type="button">Send</button><br /> <script src="./index.js"></script> </body> </html>