Exemple #1
0
 public void SetName(string newName)
 {
     Name = newName;
     LastNameChangeTimestamp = TimeInfo.Now();
     DatabaseManager.Clubs.Update(this);
     BroadcastPacketClub(ClubPacket.Rename(this));
 }
        private static void HandleRename(PacketReader packet)
        {
            long clubId = packet.ReadLong();
            string clubNewName = packet.ReadUnicodeString();

            Club club = GameServer.ClubManager.GetClubById(clubId);
            if (club == null)
            {
                return;
            }

            club.BroadcastPacketClub(ClubPacket.Rename(club, clubNewName));
            // TODO rename club (club.SetName(clubNewName);)
        }