Adapted to node-minecraft-protocol v0.12.1