Update templates
This commit is contained in:
parent
fc2ce11a39
commit
00e125c042
8 changed files with 3 additions and 116 deletions
|
@ -25,36 +25,14 @@
|
|||
const rfr = require('rfr');
|
||||
const _ = require('lodash');
|
||||
|
||||
const Configuration = rfr('src/services/minecraft/main.json');
|
||||
const Core = rfr('src/services/index.js');
|
||||
|
||||
class Service extends Core {
|
||||
constructor(server) {
|
||||
super(server, Configuration);
|
||||
}
|
||||
|
||||
onPreflight(next) {
|
||||
return super.onPreflight(next);
|
||||
}
|
||||
|
||||
onStart(next) {
|
||||
return super.onStart(next);
|
||||
}
|
||||
|
||||
onConsole(data) {
|
||||
// Hide the output spam from Bungeecord getting pinged.
|
||||
if (_.endsWith(data, '<-> InitialHandler has connected')) return;
|
||||
return super.onConsole(data);
|
||||
}
|
||||
|
||||
onStop(next) {
|
||||
return super.onStop(next);
|
||||
}
|
||||
|
||||
doQuery(next) {
|
||||
return super.doQuery(next);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = Service;
|
||||
|
|
Reference in a new issue