Raised This Month: $7 Target: $400
 1% 

[Any] Enable / Disable Plugins


Post New Thread Reply   
 
Thread Tools Display Modes
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:
    41 
    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 - 7593 views - 4.7 KB)
    __________________

    Last edited by DarthNinja; 08-14-2014 at 23:41.
    DarthNinja is offline
    Thrawn2
    Veteran Member
    Join Date: Apr 2009
    Old 04-06-2012 , 07:39   Re: [Any] Enable / Disable Plugins
    Reply With Quote #2

    https://forums.alliedmods.net/showthread.php?p=719212
    what's the difference?
    ah, i see. commands. useful.
    __________________
    einmal mit profis arbeiten. einmal.

    Last edited by Thrawn2; 04-06-2012 at 07:40.
    Thrawn2 is offline
    ozgaming
    SourceMod Donor
    Join Date: Aug 2011
    Old 04-06-2012 , 07:43   Re: [Any] Enable / Disable Plugins
    Reply With Quote #3

    this is sexy... Nice work
    ozgaming is offline
    FudgePoly
    Senior Member
    Join Date: Jul 2011
    Old 04-08-2012 , 13:07   Re: [Any] Enable / Disable Plugins
    Reply With Quote #4

    Could you add a crontab-esque interface for using a command from this plugin on a given day and hour? I could do it through linux crontab with a script file but I've been looking for something like this for a long time.
    FudgePoly is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 04-08-2012 , 13:18   Re: [Any] Enable / Disable Plugins
    Reply With Quote #5

    http://forums.alliedmods.net/showthread.php?p=523298
    __________________
    DarthNinja is offline
    ReFlexPoison
    ☠☠☠
    Join Date: Jul 2011
    Location: ☠☠☠
    Old 04-08-2012 , 13:19   Re: [Any] Enable / Disable Plugins
    Reply With Quote #6

    Quote:
    Originally Posted by FudgePoly View Post
    Could you add a crontab-esque interface for using a command from this plugin on a given day and hour? I could do it through linux crontab with a script file but I've been looking for something like this for a long time.
    Well... why would you need "an interface." You can already make crontab run any command with the plugin.

    Edit:
    Quote:
    Originally Posted by DarthNinja View Post
    Beat me to it.

    Last edited by ReFlexPoison; 04-08-2012 at 13:21.
    ReFlexPoison is offline
    FudgePoly
    Senior Member
    Join Date: Jul 2011
    Old 04-08-2012 , 13:26   Re: [Any] Enable / Disable Plugins
    Reply With Quote #7

    Quote:
    Originally Posted by DarthNinja View Post
    Thanks.
    FudgePoly is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 03-10-2013 , 12:44   Re: [Any] Enable / Disable Plugins
    Reply With Quote #8

    This plugin no longer works?

    edit1:
    I stand corrected, it just works when it wants to for some reason.

    edit2:
    Found the problem, it's not working when there's plugins in sub folders. (IE store/store-backend)

    Last edited by Drixevel; 03-10-2013 at 14:31.
    Drixevel is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 03-10-2013 , 15:37   Re: [Any] Enable / Disable Plugins
    Reply With Quote #9

    Did you specify the subfolder as well?
    __________________
    DarthNinja is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Somewhere headbangin'
    Old 03-10-2013 , 15:47   Re: [Any] Enable / Disable Plugins
    Reply With Quote #10

    Yes, an example...
    Code:
    plugins enable store/store-namecolors
    Drixevel is offline
    Reply


    Thread Tools
    Display Modes

    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 04:48.


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