@plugin class SystemPlugin(): def __init__(self, pluginInterface, config): super().__init__(pluginInterface, config) self.config = config self.interface = pluginInterface self.plugins = pluginInterface.other_plugins self.hooks = pluginInterface.hooks self.interface.register_function(self.echo) self.interface.register_function(self.exec) @plugin_function() def echo(self, string: str): pass def exec(self): pass @plugin_hook def callback(self): pass @plugin_attachment("pluginname.hookname") def caller(self): pass # interface.register_plugin(SystemPlugin)