Ejemplo n.º 1
0
        public override void OnUnload()
        {
            WarpManager.Save();

            CommandManager.Unregister <CommandWarp>();
            CommandManager.Unregister <CommandWarps>();
            CommandManager.Unregister <CommandSetWarp>();
            CommandManager.Unregister <CommandDelWarp>();
        }
Ejemplo n.º 2
0
        public override void OnLoad()
        {
            Instance = this;

            WarpManager = new WarpManager();
            WarpManager.Load();

            Logger.LogInfo($"Loaded {WarpManager.Count} warps");

            CommandManager.Register <CommandWarp>();
            CommandManager.Register <CommandWarps>();
            CommandManager.Register <CommandSetWarp>();
            CommandManager.Register <CommandDelWarp>();

            Tasks.New(t => {
                WarpManager.Save();
            }).Delay(60 * 1000).Interval(60 * 1000).Go();
        }
Ejemplo n.º 3
0
 public override void OnUnload()
 {
     WarpManager.Save();
     EventManager.UnregisterAll <WarpEventHandler>();
     CommandManager.UnregisterAll(kCommandsNamespace);
 }