FakeMCServer: a dual-description-format Minecraft server that implements server list ping

vemacs 1a44acf258 Added license header 4 years ago
src 1a44acf258 Added license header 4 years ago
.gitignore f31d3b4fae fuck you mojang 4 years ago
README.md ec47990971 Add support for server-icon 4 years ago
build.gradle 08bfe74c9b generate with gson 4 years ago

README.md

FakeMCServer

Run shadow with Gradle to compile. Output is in build/libs.

Run as java -jar FakeMCserver-0.1-shadow.jar <port (optional)>.

Config

Configuration is autogenerated on startup as server.properties.

  • version/protocol: MC version and protocol, check http://wiki.vg/Protocol#Protocol_Version
  • max/online: how many max players and online players you have
  • description: also known as motd, use standard color codes and \n for newline
  • engine: how to output the description, can be json or classic

Favicon should be a 64x64 image saved as server-icon.png.

Engines

Configuration value is description=&cBl&baze it\n&fmaggots.

  • Using engine=json: json { "version": { "name": "1.7.9", "protocol": 5 }, "players": { "max": 42070, "online": 9001 }, "description": { "text": "Bl", "bold": false, "italic": false, "underlined": false, "strikethrough": false, "obfuscated": false, "extra": [ { "text": "aze it\n", "bold": false, "italic": false, "underlined": false, "strikethrough": false, "obfuscated": false, "color": "aqua" }, { "text": "maggots", "bold": false, "italic": false, "underlined": false, "strikethrough": false, "obfuscated": false, "color": "white" } ], "color": "red" } }
  • Using engine=classic: json { "version": { "name": "1.7.9", "protocol": 5 }, "players": { "max": 42070, "online": 9001 }, "description": { "text": "\u00A7cBl\u00A7baze it\n\u00A7fmaggots", "bold": false, "italic": false, "underlined": false, "strikethrough": false, "obfuscated": false } }