Timers within Plugins

Posted by Winddancer on Sun 19 Oct 2025 06:23 PM — 5 posts, 5,199 views.

#0
I started to clear up my huge MCL character file by exporting re-usable stuff into a plugin.
So far, the plugin works.
However, I included an active timer within the plugin which I would like to be able to enable or disabled without having to modify the plugin file or by enabling and disabling the plugin itself.

How would I therefore go about to have an alias?, needs to be most likely added to the plugin itsel, with which I can enable or disabled a timer within the plugin
Australia Forum Administrator #1
Yes, you would add an alias to the plugin, then it can control any timer inside the plugin.
#2
How would such an alias look like?
Australia Forum Administrator #3
Something like this:


<aliases>
  <alias
   match="DisableFoo"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>
EnableTimer("MyTimer", false)
print ("Timer MyTimer disabled")
  </send>
  </alias>

  <alias
   match="EnableFoo"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>
EnableTimer("MyTimer", true)
print ("Timer MyTimer enabled")
  </send>
  </alias>
</aliases>


Template:pasting
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.


You could paste that directly into the plugin file. Change MyTimer to be the name (label) of the timer you want to affect.
#4
Thanks a bunch !