示例#1
0
        public override void OnEnable()
        {
            ReloadConfig();
            if (!IsPluginEnabled)
            {
                return;
            }

            Log.Info("Starting up \"RemoveInventory\"! (Created by DefyTheRush)");
            RIHandle = new RemoveInventoryHandler();
            Events.RemoteAdminCommandEvent += RIHandle.RunOnRACommandSent;
        }
示例#2
0
 public override void OnDisable()
 {
     Log.Info("Disabling \"RemoveInventory\"!");
     Events.RemoteAdminCommandEvent -= RIHandle.RunOnRACommandSent;
     RIHandle = null;
 }