Variables and Plugins

Posted by Matthias on Wed 24 Sep 2003 11:04 PM — 4 posts, 21,265 views.

#0
Is there that essentially says,"If this variable is "off" don't do -any- of this plugin"?
Canada #1
Unfortunately, not within the plugin itself. You can use two approaches as a workaround:

1. Use the EnablePlugin script function in your main script or a seperate plugin.
http://www.gammon.com.au/scripts/function.php?name=EnablePlugin

2. Create a variable in your plugin, and check it's status in every single subroutine within that plugin. IE: If AFK Then Exit
#2
Umm, how would I set an alias to change it?
Australia Forum Administrator #3
Make an alias, that sends to "script" and in that, do an "enableplugin" command.