Raised This Month: $51 Target: $400
 12% 

[Any] Enable / Disable Plugins


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Plugin ID:
2881
Plugin Version:
1.0.1
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    27 
    Plugin Description:
    Unload a plugin and move it to the disabled folder. Or: move it out of the disabled folder and load it.
    Old 04-06-2012 , 07:26   [Any] Enable / Disable Plugins
    Reply With Quote #1

    [Any] Plugin Enable/Disable
    Version 1.0.1


    Description:
    Move plugins to and from the disabled folder by command.

    Why?
    I use this for my plugin development to quickly disable plugins without having to use FTP. This is for cases when I want to unload a plugin and make sure it won't load itself again after a restart.

    The other use I have for this is to unload and disable training plugins on my scrim server before a match starts.

    In short; this is just more convenient then FTPing into the server.

    Commands:
    • plugins enable <filename>
      • Moves the specified plugin file out of the /disabled/ folder, and loads it.
    • plugins disable <filename>
      • Unloads the specified plugin file, and moves it to the /disabled/ folder.

    Cvars:
    • sm_dis_enable_version
      • Plugin Version

    Install Instructions:

    1. Place EnableDisable.smx into your addons/sourcemod/plugins/ folder.

    Note:
    By default anyone with the "root" admin flag can use this plugin's commands.
    Version History:
    • V1.0.0
      • Initial Release
    • V1.0.1
      • Fixed a typo
      • Plugin file path/name will now be displayed if a move operation fails.
    Total downloads as prior to last edit: 564
    Attached Files
    File Type: sp Get Plugin or Get Source (EnableDisable.sp - 7651 views - 4.7 KB)
    __________________

    Last edited by DarthNinja; 08-14-2014 at 23:41.
    DarthNinja is offline
     



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 17:43.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode