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

19 lines
479 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 = {}) {
this.server = server;
this.options = options;
}
}