Exemplo n.º 1
0
 internal static void TaskCallback(SchedulerTask schedulerTask)
 {
     if (!ConfigKey.AutoRankEnabled.Enabled())
     {
         return;
     }
     PlayerInfo[] onlinePlayers = Server.Players.Select(p => p.Info).ToArray();
     MaintenanceCommands.DoAutoRankAll(Player.AutoRank, onlinePlayers, false, "~AutoRank");
 }
Exemplo n.º 2
0
 // Sets up all the command hooks
 public static void Init()
 {
     DevCommands.Init();
     ModerationCommands.Init();
     BuildingCommands.Init();
     InfoCommands.Init();
     WorldCommands.Init();
     ZoneCommands.Init();
     MaintenanceCommands.Init();
     ChatCommands.Init();
     FunCommands.Init();
     MathCommands.Init();
     Logger.Log(LogType.Debug,
                "CommandManager: {0} commands registered ({1} hidden, {2} aliases)",
                Commands.Count,
                GetCommands(true).Length,
                Aliases.Count);
 }
Exemplo n.º 3
0
 public static void TaskCallback(SchedulerTask schedulerTask)
 {
     MaintenanceCommands.DoAutoRankAll(Player.Console, PlayerDB.GetPlayerListCopy(), false, "~AutoRank");
 }