public override int Execute(LogicLevel level) { LogicClientAvatar playerAvatar = level.GetPlayerAvatar(); if (playerAvatar != null) { if (this.m_enabled != playerAvatar.GetAllianceChatFilterEnabled()) { playerAvatar.SetAllianceChatFilterEnabled(true); level.GetHomeOwnerAvatar().GetChangeListener().AllianceChatFilterChanged(this.m_enabled); } return(0); } return(-1); }