예제 #1
0
        public override void OnUnload()
        {
            WarpManager.Save();

            CommandManager.Unregister <CommandWarp>();
            CommandManager.Unregister <CommandWarps>();
            CommandManager.Unregister <CommandSetWarp>();
            CommandManager.Unregister <CommandDelWarp>();
        }
예제 #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();
        }
예제 #3
0
 public override void OnUnload()
 {
     WarpManager.Save();
     EventManager.UnregisterAll <WarpEventHandler>();
     CommandManager.UnregisterAll(kCommandsNamespace);
 }