Update templates

This commit is contained in:
Dane Everitt 2016-11-18 18:22:34 -05:00
parent fc2ce11a39
commit 00e125c042
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
8 changed files with 3 additions and 116 deletions

View file

@ -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;