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); }
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)); } }
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)); } }