stretch07 / Minecraft-Classic-Reversed

classic.minecraft.net reversed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minecraft Classic Reversed

This is a project meant to document the functions and code of classic.minecraft.net.

Usage

Clone the repo and run start-server.bat, or run http-server on the working directory. Then, connect to the server using localhost:8080 in your preferred browser.

References

  • The backend server currently isn't online.
    • The functionality was mostly in place for interop with the backend.
    • KNOWN ROUTES:
      • /get-signaling-token
      • /get-signaling-host
      • /get-ice-candidates
      • /create-channel
      • /game
      • /game/${roomCode}/heartbeat
      • /game/multiplayer-enabled
  • The client connects to the server via WebSockets.
    • Messages are sent in stringified JSON
      • message.p is the payload
      • message.m is meta
      • message.o is the msgEvent
      • message.m.t is the to
      • message.m.f is the from
  • The chat is accessible through
    • There are commands, here's a list
      • /help - lists commands
      • /ban - disabled command
      • /banip - disabled command
      • /say - disabled command
      • /deop - disabled command
      • /kick - kicks user from the game (surprisingly enabled)
      • /op - disabled command
      • /tp - teleport to a player
      • /unban - disabled command
      • /setspawn - sets your spawnpoint
      • /solid - disabled command
      • /list - lists online players
      • /help - displays commands

Takedown

This is meant as a fun project. If I must take it down due to legal reasons, please contact me at thesuncat123@gmail.com, or on Discord at TheSunCat#1007.

About

classic.minecraft.net reversed

License:MIT License


Languages

Language:JavaScript 99.7%Language:CSS 0.3%Language:HTML 0.0%