Skip to content

xffc/kmc

Repository files navigation

KMC

A project written in Kotlin that allows you to work with the Minecraft network protocol.

Modules

  1. net - handles packets and provides an abstract client that reads incoming packets
  2. server - a TCP server that processes client connections
  3. dummysrv - a standalone JVM application that simulates a Minecraft server (displays the MOTD and kicks players upon connection)
  4. serverstatus - can be run as a standalone JVM application to retrieve the status of a Minecraft server or used as a library to retrieve the status of a Minecraft server

Publishing

Preparation

  1. Log in to your account at Central sonatype and generate a User Token (BE SURE TO SAVE IT)
  2. Generate a GPG key using gpg --full-generate-key, select a key length of 4096, fill in the details, and BE SURE to save the passphrase
  3. Export the GPG keys using gpg --list-keys, then copy the last 8 HEX characters from the pub category
  4. Export your secret GPG keys using gpg --export-secret-keys -o /path/to/secring/secring.gpg (for example: C:\Users\xffc\secring.gpg)
  5. Publish the keys using gpg --keyserver keyserver.ubuntu.com --send-keys XXX, where XXX is your full HEX key (see step 2)
  6. Create ~/.gradle/gradle.properties and fill it out:
signing.keyId=Last 8 HEX characters from step 2
signing.password=Passphrase from step 1
signing.secretKeyRingFile=Path to secret GPG keys from step 3

mavenCentralUsername=Central Sonatype username from step 1
mavenCentralPassword=Central Sonatype password from step 1

Publishing

  1. Update the version
  2. Run gradlew publish

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages