@Override
public PlayerListMessage decode(ByteBuf buffer) throws IOException {
String name = VanillaByteBufUtils.readString(buffer);
boolean addOrRemove = buffer.readByte() == 1;
short ping = buffer.readShort();
return new PlayerListMessage(name, addOrRemove, ping);
}