Exemplo n.º 1
0
        public static string BanNormalId(string str, Account player, bool warn)
        {
            string[] strArray = str.Substring(6).Split(' ');
            long     int64    = Convert.ToInt64(strArray[0]);
            DateTime endDate  = DateTime.Now.AddDays(Convert.ToDouble(strArray[1]));
            Account  account  = AccountManager.getAccount(int64, 0);

            return(Ban.BaseBanNormal(player, account, warn, endDate));
        }
Exemplo n.º 2
0
        public static string BanNormalNick(string str, Account player, bool warn)
        {
            string[] strArray = str.Substring(5).Split(' ');
            string   text     = strArray[0];
            DateTime endDate  = DateTime.Now.AddDays(Convert.ToDouble(strArray[1]));
            Account  account  = AccountManager.getAccount(text, 1, 0);

            return(Ban.BaseBanNormal(player, account, warn, endDate));
        }