public void Write(ClientWrapper state, MSGBuffer buffer, object[] Arguments) { buffer.WriteVarInt(PacketID); buffer.WriteInt(state.Player.UniqueServerID); buffer.WriteByte((byte)state.Player.Gamemode); buffer.WriteInt(state.Player.Dimension); buffer.WriteByte((byte)Globals.Difficulty); buffer.WriteByte((byte)Globals.MaxPlayers); buffer.WriteString(Globals.LVLType); buffer.WriteBool(false); Globals.Logger.Log(Utils.LogType.Error, Globals.LVLType); buffer.FlushData(); }
public void Write(ClientWrapper state, MSGBuffer buffer, object[] Arguments) { buffer.WriteVarInt(0x08); buffer.WriteDouble(Globals.WorldGen.GetSpawnPoint().X); buffer.WriteDouble(Globals.WorldGen.GetSpawnPoint().Y); buffer.WriteDouble(Globals.WorldGen.GetSpawnPoint().Z); buffer.WriteFloat(0f); buffer.WriteFloat(0f); buffer.WriteByte(111); buffer.FlushData(); }