private void Register(NetIncomingMessage incmsg) { string name = incmsg.ReadString(); string pass = incmsg.ReadString(); string s = serverCore.GetDataBase().Register(name, pass); NetOutgoingMessage outmsg = serverCore.CreateMessage(); outmsg.Write((byte)PacketType.LogRegMsg); outmsg.Write(s); ServerPacketSender.SendMessageTo(outmsg, incmsg.SenderConnection); }