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 rfr = require('rfr');
const _ = require('lodash'); const _ = require('lodash');
const Configuration = rfr('src/services/minecraft/main.json');
const Core = rfr('src/services/index.js'); const Core = rfr('src/services/index.js');
class Service extends Core { class Service extends Core {
constructor(server) {
super(server, Configuration);
}
onPreflight(next) {
return super.onPreflight(next);
}
onStart(next) {
return super.onStart(next);
}
onConsole(data) { onConsole(data) {
// Hide the output spam from Bungeecord getting pinged. // Hide the output spam from Bungeecord getting pinged.
if (_.endsWith(data, '<-> InitialHandler has connected')) return; if (_.endsWith(data, '<-> InitialHandler has connected')) return;
return super.onConsole(data); return super.onConsole(data);
} }
onStop(next) {
return super.onStop(next);
}
doQuery(next) {
return super.doQuery(next);
}
} }
module.exports = Service; module.exports = Service;

View file

@ -1,10 +1,5 @@
{ {
"latest": {
"tag": "^(latest)$",
"symlink": "vanilla"
},
"vanilla": { "vanilla": {
"tag": "^(vanilla){1}(-[\\w\\d.-]+)?$",
"startup": { "startup": {
"done": ")! For help, type ", "done": ")! For help, type ",
"userInteraction": [ "userInteraction": [
@ -30,7 +25,6 @@
"query": "minecraftping" "query": "minecraftping"
}, },
"spigot": { "spigot": {
"tag": "^(spigot)$",
"symlink": "vanilla", "symlink": "vanilla",
"configs": { "configs": {
"spigot.yml": { "spigot.yml": {
@ -42,7 +36,6 @@
} }
}, },
"bungeecord": { "bungeecord": {
"tag": "^(bungeecord)$",
"startup": { "startup": {
"done": "Listening on " "done": "Listening on "
}, },
@ -64,7 +57,6 @@
"query": "minecraftping" "query": "minecraftping"
}, },
"sponge": { "sponge": {
"tag": "^(sponge)$",
"symlink": "vanilla", "symlink": "vanilla",
"startup": { "startup": {
"userInteraction": [ "userInteraction": [

View file

@ -24,34 +24,8 @@
*/ */
const rfr = require('rfr'); const rfr = require('rfr');
const Configuration = rfr('src/services/srcds/main.json');
const Core = rfr('src/services/index.js'); const Core = rfr('src/services/index.js');
class Service extends Core { class Service extends Core {}
constructor(server) {
super(server, Configuration);
}
onPreflight(next) {
return super.onPreflight(next);
}
onStart(next) {
return super.onStart(next);
}
onConsole(data) {
return super.onConsole(data);
}
onStop(next) {
return super.onStop(next);
}
doQuery(next) {
return super.doQuery(next);
}
}
module.exports = Service; module.exports = Service;

View file

@ -1,6 +1,5 @@
{ {
"srcds": { "srcds": {
"tag": "^(srcds)$",
"startup": { "startup": {
"done": "Assigned anonymous gameserver Steam ID", "done": "Assigned anonymous gameserver Steam ID",
"userInteraction": [] "userInteraction": []
@ -14,7 +13,6 @@
"query": "protocol-valve" "query": "protocol-valve"
}, },
"ark": { "ark": {
"tag": "^(ark)$",
"symlink": "srcds", "symlink": "srcds",
"startup": { "startup": {
"done": "Setting breakpad minidump AppID" "done": "Setting breakpad minidump AppID"

View file

@ -24,34 +24,8 @@
*/ */
const rfr = require('rfr'); const rfr = require('rfr');
const Configuration = rfr('src/services/terraria/main.json');
const Core = rfr('src/services/index.js'); const Core = rfr('src/services/index.js');
class Service extends Core { class Service extends Core {}
constructor(server) {
super(server, Configuration);
}
onPreflight(next) {
return super.onPreflight(next);
}
onStart(next) {
return super.onStart(next);
}
onConsole(data) {
return super.onConsole(data);
}
onStop(next) {
return super.onStop(next);
}
doQuery(next) {
return super.doQuery(next);
}
}
module.exports = Service; module.exports = Service;

View file

@ -1,6 +1,5 @@
{ {
"tshock": { "tshock": {
"tag": "^(tshock)$",
"startup": { "startup": {
"done": "Type 'help' for a list of commands", "done": "Type 'help' for a list of commands",
"userInteraction": [] "userInteraction": []

View file

@ -24,34 +24,8 @@
*/ */
const rfr = require('rfr'); const rfr = require('rfr');
const Configuration = rfr('src/services/voice/main.json');
const Core = rfr('src/services/index.js'); const Core = rfr('src/services/index.js');
class Service extends Core { class Service extends Core {}
constructor(server) {
super(server, Configuration);
}
onPreflight(next) {
return super.onPreflight(next);
}
onStart(next) {
return super.onStart(next);
}
onConsole(data) {
return super.onConsole(data);
}
onStop(next) {
return super.onStop(next);
}
doQuery(next) {
return super.doQuery(next);
}
}
module.exports = Service; module.exports = Service;

View file

@ -1,6 +1,5 @@
{ {
"mumble": { "mumble": {
"tag": "^(mumble)$",
"startup": { "startup": {
"done": "Server listening on", "done": "Server listening on",
"userInteraction": [ "userInteraction": [
@ -26,7 +25,6 @@
"query": "mumbleping" "query": "mumbleping"
}, },
"teamspeak": { "teamspeak": {
"tag": "^(ts3)$",
"startup": { "startup": {
"done": "listening on 0.0.0.0:", "done": "listening on 0.0.0.0:",
"userInteraction": [] "userInteraction": []