public override void OnEnable() { ReloadConfig(); if (!IsPluginEnabled) { return; } Log.Info("Starting up \"RemoveInventory\"! (Created by DefyTheRush)"); RIHandle = new RemoveInventoryHandler(); Events.RemoteAdminCommandEvent += RIHandle.RunOnRACommandSent; }
public override void OnDisable() { Log.Info("Disabling \"RemoveInventory\"!"); Events.RemoteAdminCommandEvent -= RIHandle.RunOnRACommandSent; RIHandle = null; }