public override void Unload(bool shutdown)
        {
            Command.Unregister(Command.Find("ReloadEffects"));
            Command.Unregister(Command.Find("Effect"));
            Command.Unregister(Command.Find("Spawner"));

            OnPlayerFinishConnectingEvent.Unregister(OnPlayerFinishConnecting);
            OnLevelLoadedEvent.Unregister(OnLevelLoaded);
            OnLevelUnloadEvent.Unregister(OnLevelUnload);
            OnLevelDeletedEvent.Unregister(OnLevelDeleted);
            OnLevelCopiedEvent.Unregister(OnLevelCopied);
            OnLevelRenamedEvent.Unregister(OnLevelRenamed);

            spawnersAtLevel.Clear();
            instance.Cancel(tickSpawners);
        }
示例#2
0
        public override void Unload(bool shutdown)
        {
            SentCustomModels.Clear();
            ModelNameToIdForPlayer.Clear();

            OnPlayerConnectEvent.Unregister(OnPlayerConnect);
            OnPlayerDisconnectEvent.Unregister(OnPlayerDisconnect);
            OnJoiningLevelEvent.Unregister(OnJoiningLevel);
            OnJoinedLevelEvent.Unregister(OnJoinedLevel);
            OnSendingModelEvent.Unregister(OnSendingModel);
            OnPlayerCommandEvent.Unregister(OnPlayerCommand);
            // OnEntitySpawnedEvent.Unregister(OnEntitySpawned);

            if (command != null)
            {
                Command.Unregister(command);
                command = null;
            }
        }
示例#3
0
        public override void Unload(bool shutdown)
        {
            if (dc != null)
            {
                dc.Dispose();
            }
            if (!registered)
            {
                return;
            }
            OnPlayerConnectEvent.Unregister(PlayerConnect);
            OnPlayerDisconnectEvent.Unregister(PlayerDisconnect);
            OnPlayerChatEvent.Unregister(PlayerChat);
            OnPlayerCommandEvent.Unregister(PlayerCommand);

            OnMessageReceivedEvent.Unregister(DiscordMessage);

            Command.Unregister(Command.Find("DiscordBot"));
        }
示例#4
0
 public override void Unload(bool shutdown)
 {
     Command.Unregister(Command.Find("XP"));
 }
示例#5
0
 public override void Unload(bool shutdown)
 {
     OnPlayerDisconnectEvent.Unregister(LeaveServer);
     Command.Unregister(Command.Find("Party"));
 }
示例#6
0
 public override void Unload(bool shutdown)
 {
     Command.Unregister(Command.Find("Lottery"));
     OnPlayerDisconnectEvent.Unregister(HandlePlayerDisconnect);
 }
示例#7
0
 public bool Remove(Command cmd)
 {
     return(Command.Unregister(cmd));
 }
示例#8
0
 public override void Unload(bool shutdown)
 {
     Command.Unregister(Command.Find("Stopwatch"));
     OnJoinedLevelEvent.Unregister(HandleOnJoinedLevel);
 }
 public override void Unload(bool shutdown)
 {
     Command.Unregister(Command.Find("SetSoftwareName"));
 }
示例#10
0
        public override void Unload(bool shutdown)
        {
            OnGettingMotdEvent.Unregister(HandleGettingMOTD);

            Command.Unregister(Command.Find("Crouch"));
        }
 public override void Unload(bool shutdown)
 {
     Command.Unregister(Command.Find("FavouriteMap"));
     OnlineStat.Stats.Remove(onlineLine);
     OfflineStat.Stats.Remove(offlineLine);
 }