mc-srv

command module
v0.0.0-...-84bc974 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 8 Imported by: 0

README

mc-srv

A simple Minecraft server to play around with the protocol.

Implementation status

Server list ping
  • Handle handshake packet
  • Handle status request packet
  • Send status response packet
  • Handle ping request packet
  • Send ping response packet
Login
  • Handle handshake packet (state=2)
  • Handle login start packet
  • Send encryption request packet
  • Handle encryption response packet
  • Send login success packet
  • Handle login acknowledged packet
Configuration
  • Send plugin message configuration packets (not needed)
  • Send disconnect packets when needed
  • Send finish configuration packet
  • Send keep alive packets
  • Send ping packets (not needed)
  • Send registry data packet
  • Send remove resource pack packet
  • Send add resource pack packet
  • Send feature flags packet
  • Send update tags packet
  • Handle client information packet
  • Store data from client information packet(?)
  • Handle serverbound plugin message packet
  • Handle acknowledge finish configuration packet
  • Handle serverbound keep alive packets
  • Disconnect clients if they don't respond to keepalive pings in a reasonable time
  • Handle pong packets (not needed)
  • Handle resource pack response packets
  • Store data from resource pack response packets(?)
Play
  • A lot :)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package flags contains top-level flags for the application.
Package flags contains top-level flags for the application.
Package packet contains packet definitions and parsers.
Package packet contains packet definitions and parsers.
headertest
Package headertest contains test data for packet headers.
Package headertest contains test data for packet headers.
id
login/logintest
Package logintest contains data for testing login.
Package logintest contains data for testing login.
pingtest
Package pingtest provides test data for the ping packet.
Package pingtest provides test data for the ping packet.
readpacket
Package readpacket handles reading packets.
Package readpacket handles reading packets.
slp
Package slp contains packets for the Server List Ping protocol.
Package slp contains packets for the Server List Ping protocol.
slp/slptest
Package slptest contains testdata for Server List Ping protocol packets.
Package slptest contains testdata for Server List Ping protocol packets.
types
Package types holds common API types.
Package types holds common API types.
writepacket
Package writepacket handles writing packets.
Package writepacket handles writing packets.
Package read reads values according to the Minecraft Client-Server protocol.
Package read reads values according to the Minecraft Client-Server protocol.
Package server implements the request/response logic of the server.
Package server implements the request/response logic of the server.
serverstate
Package serverstate contains an enum for the current server state.
Package serverstate contains an enum for the current server state.
Package write handles writing packets back to the client.
Package write handles writing packets back to the client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL