Elytra-Server / Elytra

A Cleanroom minecraft server API in kotlin
MIT License
51 stars 6 forks source link

Gamemode command not working #40

Closed chicoferreira closed 4 years ago

chicoferreira commented 4 years ago

Describe the bug When someone tries to change gamemode with /gamemode he gets kicked with an DecoderException error.

To Reproduce Steps to reproduce the behavior:

  1. Open chat with T (default key)
  2. Type /gamemode something

Expected behavior The players should have their gamemode changed to the input gamemode.

Screenshots image

TommyAlmeida commented 4 years ago

The reason for this to happening is because the playEffect packet is sending x, y, z instead of sending the position packed into a long with bitshifted values from x, y, z. Already fixing.