mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
add a new section to README
This commit is contained in:
parent
c2beb41fef
commit
b99a319ef1
1 changed files with 11 additions and 0 deletions
11
README.md
11
README.md
|
@ -47,4 +47,15 @@ client.on('packet', function(packet) {
|
|||
## Testing
|
||||
|
||||
* Ensure your system has the `java` executable in `PATH`.
|
||||
* Download the appropriate version of `minecraft_server.jar`.
|
||||
* `MC_SERVER_JAR=path/to/minecraft_server.jar MC_USERNAME=username MC_EMAIL=email@example.com MC_PASSWORD=password npm test`
|
||||
|
||||
## Updating to a newer protocol version
|
||||
|
||||
In most cases you should only have to do the following:
|
||||
|
||||
1. In `packets.json`:
|
||||
* Update `protocolVersion` to the correct number.
|
||||
* Edit the data structure to reflect the new packet layout.
|
||||
2. Update the "Minecraft Compatibility" section above in this README.
|
||||
3. Run the test suite to make sure everything still works. See "Testing" above.
|
||||
|
|
Loading…
Reference in a new issue