Ejemplo n.º 1
0
        public void Mute(string reason, DateTime expiry, int issuedBy = 0)
        {
            var issue = new ChatIssue(-1, ChatIssueTypes.MUTE, issuedBy, DateTime.Now, expiry, reason);

            MessageController.System(Player, "You've been muted by " + issue.GetIssuer().Name + " for " + reason + "\nExpires at: " + expiry);
            Chat.DatabaseManager.AddChatIssue(Player, issue);
        }
Ejemplo n.º 2
0
        public void Kick(string reason, int issuedBy = 0)
        {
            var issue = new ChatIssue(-1, ChatIssueTypes.KICK, issuedBy, DateTime.Now, DateTime.Now, reason);

            MessageController.System(Player, "You've been kicked by " + issue.GetIssuer().Name + " for " + reason);
            Chat.DatabaseManager.AddChatIssue(Player, issue);
            Close();
        }