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

20 lines
530 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 = {}, optionsRaw = {}) {
2020-10-23 05:18:23 -05:00
this.server = server;
this.options = options;
this.optionsRaw = optionsRaw;
2020-10-23 05:18:23 -05:00
}
2020-10-05 12:52:01 -05:00
}