SquadJS/squad-server/plugins/base-plugin.js

19 lines
479 B
JavaScript
Raw Normal View History

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
constructor(server, options = {}) {
this.server = server;
this.options = options;
}
2020-10-05 12:52:01 -05:00
}