예제 #1
0
        public void FellowshipNewLeader(uint newLeaderGuid)
        {
            if (Fellowship == null || Guid.Full == newLeaderGuid)
            {
                return;
            }

            if (Guid.Full != Fellowship.FellowshipLeaderGuid)
            {
                log.Warn($"{Name} tried to assign new fellowship leader from {Fellowship.FellowshipLeaderGuid:X8} to {newLeaderGuid:X8}");
                return;
            }

            var newLeader = PlayerManager.GetOnlinePlayer(newLeaderGuid);

            if (newLeader == null)
            {
                return;
            }

            if (newLeader.Fellowship != Fellowship)
            {
                Session.Network.EnqueueSend(new GameMessageSystemChat($"{newLeader.Name} is not a member of the fellowship!", ChatMessageType.Broadcast));
                return;
            }

            Fellowship.AssignNewLeader(this, newLeader);
        }
예제 #2
0
        public void FellowshipNewLeader(Player newLeader)
        {
            if (Fellowship == null || newLeader == null)
            {
                return;
            }

            Fellowship.AssignNewLeader(this, newLeader);
        }
예제 #3
0
 public void FellowshipNewLeader(Player newLeader)
 {
     Fellowship.AssignNewLeader(newLeader);
 }