Beispiel #1
0
 public static void Unlock()
 {
     OnPlayerConnectingEvent.Unregister(ConnectingHandler);
     Player.MessageLines(null, CompactMessages);
     Logger.Log(LogType.SystemActivity, "&aUpgrade finished!");
     Upgrading = false;
 }
Beispiel #2
0
        public override void Unload(bool shutdown)
        {
            OnPlayerConnectEvent.Unregister(ConnectHandler.HandleConnect);
            OnPlayerCommandEvent.Unregister(ChatHandler.HandleCommand);
            OnPlayerConnectingEvent.Unregister(ConnectingHandler.HandleConnecting);

            OnJoinedLevelEvent.Unregister(MiscHandlers.HandleOnJoinedLevel);
            OnPlayerMoveEvent.Unregister(MiscHandlers.HandlePlayerMove);
            OnPlayerClickEvent.Unregister(MiscHandlers.HandlePlayerClick);

            OnEcoTransactionEvent.Unregister(EcoHandlers.HandleEcoTransaction);
            OnModActionEvent.Unregister(ModActionHandler.HandleModAction);
            OnGroupLoadEvent.Unregister(MiscHandlers.HandleGroupLoad);

            Server.Background.Cancel(clearTask);
        }