Ejemplo n.º 1
0
        public void FellowshipDismissPlayer(uint dismissGuid)
        {
            if (Fellowship == null)
            {
                return;
            }

            if (Guid.Full != Fellowship.FellowshipLeaderGuid)
            {
                Session.Network.EnqueueSend(new GameEventWeenieError(Session, WeenieError.YouMustBeLeaderOfFellowship));
                return;
            }

            if (Guid.Full == dismissGuid)
            {
                Session.Network.EnqueueSend(new GameMessageSystemChat("You can't dismiss yourself from the fellowship", ChatMessageType.Broadcast));
                return;
            }

            var fellowToDismiss = PlayerManager.GetOnlinePlayer(dismissGuid);

            if (fellowToDismiss == null)
            {
                return;
            }

            Fellowship.RemoveFellowshipMember(fellowToDismiss, this);
        }
Ejemplo n.º 2
0
 public void FellowshipDismissPlayer(Player player)
 {
     if (Guid.Full == Fellowship.FellowshipLeaderGuid)
     {
         Fellowship.RemoveFellowshipMember(player);
     }
     else
     {
         Session.Network.EnqueueSend(new GameMessageSystemChat("You are not the fellowship leader.", ChatMessageType.Fellowship));
     }
 }
Ejemplo n.º 3
0
        public void FellowshipDismissPlayer(Player player)
        {
            if (Fellowship == null)
            {
                return;
            }

            if (Guid.Full == Fellowship.FellowshipLeaderGuid)
            {
                Fellowship.RemoveFellowshipMember(player);
            }
            else
            {
                Session.Network.EnqueueSend(new GameEventWeenieError(Session, WeenieError.YouMustBeLeaderOfFellowship));
            }
        }