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"); }
// 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); }
public static void TaskCallback(SchedulerTask schedulerTask) { MaintenanceCommands.DoAutoRankAll(Player.Console, PlayerDB.GetPlayerListCopy(), false, "~AutoRank"); }