Skip to content

Commit

Permalink
Update templates
Browse files Browse the repository at this point in the history
  • Loading branch information
DaneEveritt committed Nov 18, 2016
1 parent fc2ce11 commit 00e125c
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 116 deletions.
22 changes: 0 additions & 22 deletions storage/app/services/minecraft/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
8 changes: 0 additions & 8 deletions storage/app/services/minecraft/main.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"latest": {
"tag": "^(latest)$",
"symlink": "vanilla"
},
"vanilla": {
"tag": "^(vanilla){1}(-[\\w\\d.-]+)?$",
"startup": {
"done": ")! For help, type ",
"userInteraction": [
Expand All @@ -30,7 +25,6 @@
"query": "minecraftping"
},
"spigot": {
"tag": "^(spigot)$",
"symlink": "vanilla",
"configs": {
"spigot.yml": {
Expand All @@ -42,7 +36,6 @@
}
},
"bungeecord": {
"tag": "^(bungeecord)$",
"startup": {
"done": "Listening on "
},
Expand All @@ -64,7 +57,6 @@
"query": "minecraftping"
},
"sponge": {
"tag": "^(sponge)$",
"symlink": "vanilla",
"startup": {
"userInteraction": [
Expand Down
28 changes: 1 addition & 27 deletions storage/app/services/srcds/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,8 @@
*/
const rfr = require('rfr');

const Configuration = rfr('src/services/srcds/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) {
return super.onConsole(data);
}

onStop(next) {
return super.onStop(next);
}

doQuery(next) {
return super.doQuery(next);
}

}
class Service extends Core {}

module.exports = Service;
2 changes: 0 additions & 2 deletions storage/app/services/srcds/main.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"srcds": {
"tag": "^(srcds)$",
"startup": {
"done": "Assigned anonymous gameserver Steam ID",
"userInteraction": []
Expand All @@ -14,7 +13,6 @@
"query": "protocol-valve"
},
"ark": {
"tag": "^(ark)$",
"symlink": "srcds",
"startup": {
"done": "Setting breakpad minidump AppID"
Expand Down
28 changes: 1 addition & 27 deletions storage/app/services/terraria/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,8 @@
*/
const rfr = require('rfr');

const Configuration = rfr('src/services/terraria/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) {
return super.onConsole(data);
}

onStop(next) {
return super.onStop(next);
}

doQuery(next) {
return super.doQuery(next);
}

}
class Service extends Core {}

module.exports = Service;
1 change: 0 additions & 1 deletion storage/app/services/terraria/main.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"tshock": {
"tag": "^(tshock)$",
"startup": {
"done": "Type 'help' for a list of commands",
"userInteraction": []
Expand Down
28 changes: 1 addition & 27 deletions storage/app/services/voice/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,8 @@
*/
const rfr = require('rfr');

const Configuration = rfr('src/services/voice/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) {
return super.onConsole(data);
}

onStop(next) {
return super.onStop(next);
}

doQuery(next) {
return super.doQuery(next);
}

}
class Service extends Core {}

module.exports = Service;
2 changes: 0 additions & 2 deletions storage/app/services/voice/main.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"mumble": {
"tag": "^(mumble)$",
"startup": {
"done": "Server listening on",
"userInteraction": [
Expand All @@ -26,7 +25,6 @@
"query": "mumbleping"
},
"teamspeak": {
"tag": "^(ts3)$",
"startup": {
"done": "listening on 0.0.0.0:",
"userInteraction": []
Expand Down

0 comments on commit 00e125c

Please sign in to comment.