Exemplo n.º 1
0
        public void Excecute(IRocketPlayer caller, string[] args)
        {
            if (args.Length != 1)
            {
                LoonePermissions.Say(caller, "invalid_args", Color.red);
                return;
            }

            if (MySqlManager.GroupExists(args[0].ToLower()))
            {
                LoonePermissions.Say(caller, "group_exists", Color.red);
                return;
            }

            MySqlManager.CreateGroup(args[0].ToLower());
            LoonePermissions.Say(caller, "group_create", Color.green, args[0].ToLower());
            RocketLogger.Log(string.Format("{0} created the group {1}!", caller.DisplayName, args[0].ToLower()), ConsoleColor.Yellow);
        }