2020-10-05 12:52:01 -05:00
|
|
|
export default class BasePlugin {
|
|
|
|
static get description() {
|
|
|
|
throw new Error('Plugin missing "static get description()" method.');
|
|
|
|
}
|
|
|
|
|
|
|
|
static get defaultEnabled() {
|
|
|
|
throw new Error('Plugin missing "static get defaultEnabled()" method.');
|
|
|
|
}
|
|
|
|
|
|
|
|
static get optionsSpecification() {
|
|
|
|
throw new Error('Plugin missing "static get optionSpecification()" method.');
|
|
|
|
}
|
2020-10-23 05:18:23 -05:00
|
|
|
|
2020-10-23 05:29:38 -05:00
|
|
|
constructor(server, options = {}, optionsRaw = {}) {
|
2020-10-23 05:18:23 -05:00
|
|
|
this.server = server;
|
|
|
|
this.options = options;
|
2020-10-23 05:29:38 -05:00
|
|
|
this.optionsRaw = optionsRaw;
|
2020-10-23 05:18:23 -05:00
|
|
|
}
|
2020-10-05 12:52:01 -05:00
|
|
|
}
|