SquadJS/squad-server/plugins/base-plugin.js
2020-10-23 11:29:38 +01:00

20 lines
530 B
JavaScript

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.');
}
constructor(server, options = {}, optionsRaw = {}) {
this.server = server;
this.options = options;
this.optionsRaw = optionsRaw;
}
}