Plugin

abstract class Plugin

Base Plugin class all plugins must extend

Constructors

Link copied to clipboard
constructor(manifest: Plugin.Manifest)
constructor()

Types

Link copied to clipboard
open class Manifest
Plugin Manifest
Link copied to clipboard
open class SettingsTab
Plugin SettingsTab

Functions

Link copied to clipboard
Returns the @AliucordPlugin annotation if exists
Link copied to clipboard
open fun getName(): String
Link copied to clipboard
open fun load(context: Context)
Called when your Plugin is loaded
Link copied to clipboard
Returns whether the user will be prompted to restart after enabling/disabling.
Link copied to clipboard
abstract fun start(context: Context)
Called when your Plugin is started
Link copied to clipboard
abstract fun stop(context: Context)
Called when your Plugin is stopped
Link copied to clipboard
open fun unload(context: Context)
Called when your Plugin is unloaded

Properties

Link copied to clipboard
open var __filename: String
The filename of your plugin
Link copied to clipboard
The Logger of your plugin.
Link copied to clipboard
Link copied to clipboard
Whether your plugin has resources that need to be loaded
Link copied to clipboard
The resources of your plugin.
Link copied to clipboard
The SettingsAPI of your plugin.
Link copied to clipboard
SettingsTab associated with this plugin.