AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Any] Enable / Disable Plugins (https://forums.alliedmods.net/showthread.php?t=182086)

DarthNinja 04-06-2012 07:26

[Any] Enable / Disable Plugins
 
1 Attachment(s)
[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

Thrawn2 04-06-2012 07:39

Re: [Any] Enable / Disable Plugins
 
https://forums.alliedmods.net/showthread.php?p=719212
what's the difference?
ah, i see. commands. useful.

ozgaming 04-06-2012 07:43

Re: [Any] Enable / Disable Plugins
 
this is sexy... Nice work

FudgePoly 04-08-2012 13:07

Re: [Any] Enable / Disable Plugins
 
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.

DarthNinja 04-08-2012 13:18

Re: [Any] Enable / Disable Plugins
 
http://forums.alliedmods.net/showthread.php?p=523298

ReFlexPoison 04-08-2012 13:19

Re: [Any] Enable / Disable Plugins
 
Quote:

Originally Posted by FudgePoly (Post 1684623)
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 (Post 1684634)

Beat me to it.

FudgePoly 04-08-2012 13:26

Re: [Any] Enable / Disable Plugins
 
Quote:

Originally Posted by DarthNinja (Post 1684634)

Thanks.

Drixevel 03-10-2013 12:44

Re: [Any] Enable / Disable Plugins
 
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)

DarthNinja 03-10-2013 15:37

Re: [Any] Enable / Disable Plugins
 
Did you specify the subfolder as well?

Drixevel 03-10-2013 15:47

Re: [Any] Enable / Disable Plugins
 
Yes, an example...
Code:

plugins enable store/store-namecolors


All times are GMT -4. The time now is 13:53.

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