Ticket #29 (closed task: fixed)
Toggle
| Reported by: | tobias382 | Owned by: | tobias382 |
|---|---|---|---|
| Priority: | normal | Component: | plugins |
| Version: | 1.5 | Severity: | normal |
| Keywords: | Cc: |
Description
Add a new AdminCommand?-based plugin, Toggle, with onEnable and onDisable handlers that both accept the short name of a plugin. They should use the getInstance() method for that plugin class to get the active plugin instance, then call one or two new methods for the base plugin class, enable() and disable(), that toggle an internal flag. The call implementation of the base plugin class should be modified such that, if the plug in has been disabled, call does nothing.
Change History
Note: See
TracTickets for help on using
tickets.