Exemple #1
0
        internal override IPromise <Nothing> Process(PlayerHandle sender, ChatManager server)
        {
            if (this.WillServicesDispatch())
            {
                return(base.Process(sender, server));
            }

            if (!this.lobbyService.CheckSlowmodeTimerInWorld(sender))
            {
                return(Nothing.Resolved());
            }

            if (!server.CheckWorldMessagePermission(sender))
            {
                return(Nothing.Resolved());
            }

            return(base.Process(sender, server));
        }