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); }
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; } }
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")); }
public override void Unload(bool shutdown) { Command.Unregister(Command.Find("XP")); }
public override void Unload(bool shutdown) { OnPlayerDisconnectEvent.Unregister(LeaveServer); Command.Unregister(Command.Find("Party")); }
public override void Unload(bool shutdown) { Command.Unregister(Command.Find("Lottery")); OnPlayerDisconnectEvent.Unregister(HandlePlayerDisconnect); }
public bool Remove(Command cmd) { return(Command.Unregister(cmd)); }
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")); }
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); }