Skip to content

Commit 00e125c

Browse files
committed
Update templates
1 parent fc2ce11 commit 00e125c

File tree

8 files changed

+3
-116
lines changed

8 files changed

+3
-116
lines changed

storage/app/services/minecraft/index.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,36 +25,14 @@
2525
const rfr = require('rfr');
2626
const _ = require('lodash');
2727

28-
const Configuration = rfr('src/services/minecraft/main.json');
2928
const Core = rfr('src/services/index.js');
3029

3130
class Service extends Core {
32-
constructor(server) {
33-
super(server, Configuration);
34-
}
35-
36-
onPreflight(next) {
37-
return super.onPreflight(next);
38-
}
39-
40-
onStart(next) {
41-
return super.onStart(next);
42-
}
43-
4431
onConsole(data) {
4532
// Hide the output spam from Bungeecord getting pinged.
4633
if (_.endsWith(data, '<-> InitialHandler has connected')) return;
4734
return super.onConsole(data);
4835
}
49-
50-
onStop(next) {
51-
return super.onStop(next);
52-
}
53-
54-
doQuery(next) {
55-
return super.doQuery(next);
56-
}
57-
5836
}
5937

6038
module.exports = Service;

storage/app/services/minecraft/main.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{
2-
"latest": {
3-
"tag": "^(latest)$",
4-
"symlink": "vanilla"
5-
},
62
"vanilla": {
7-
"tag": "^(vanilla){1}(-[\\w\\d.-]+)?$",
83
"startup": {
94
"done": ")! For help, type ",
105
"userInteraction": [
@@ -30,7 +25,6 @@
3025
"query": "minecraftping"
3126
},
3227
"spigot": {
33-
"tag": "^(spigot)$",
3428
"symlink": "vanilla",
3529
"configs": {
3630
"spigot.yml": {
@@ -42,7 +36,6 @@
4236
}
4337
},
4438
"bungeecord": {
45-
"tag": "^(bungeecord)$",
4639
"startup": {
4740
"done": "Listening on "
4841
},
@@ -64,7 +57,6 @@
6457
"query": "minecraftping"
6558
},
6659
"sponge": {
67-
"tag": "^(sponge)$",
6860
"symlink": "vanilla",
6961
"startup": {
7062
"userInteraction": [

storage/app/services/srcds/index.js

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24,34 +24,8 @@
2424
*/
2525
const rfr = require('rfr');
2626

27-
const Configuration = rfr('src/services/srcds/main.json');
2827
const Core = rfr('src/services/index.js');
2928

30-
class Service extends Core {
31-
constructor(server) {
32-
super(server, Configuration);
33-
}
34-
35-
onPreflight(next) {
36-
return super.onPreflight(next);
37-
}
38-
39-
onStart(next) {
40-
return super.onStart(next);
41-
}
42-
43-
onConsole(data) {
44-
return super.onConsole(data);
45-
}
46-
47-
onStop(next) {
48-
return super.onStop(next);
49-
}
50-
51-
doQuery(next) {
52-
return super.doQuery(next);
53-
}
54-
55-
}
29+
class Service extends Core {}
5630

5731
module.exports = Service;

storage/app/services/srcds/main.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"srcds": {
3-
"tag": "^(srcds)$",
43
"startup": {
54
"done": "Assigned anonymous gameserver Steam ID",
65
"userInteraction": []
@@ -14,7 +13,6 @@
1413
"query": "protocol-valve"
1514
},
1615
"ark": {
17-
"tag": "^(ark)$",
1816
"symlink": "srcds",
1917
"startup": {
2018
"done": "Setting breakpad minidump AppID"

storage/app/services/terraria/index.js

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24,34 +24,8 @@
2424
*/
2525
const rfr = require('rfr');
2626

27-
const Configuration = rfr('src/services/terraria/main.json');
2827
const Core = rfr('src/services/index.js');
2928

30-
class Service extends Core {
31-
constructor(server) {
32-
super(server, Configuration);
33-
}
34-
35-
onPreflight(next) {
36-
return super.onPreflight(next);
37-
}
38-
39-
onStart(next) {
40-
return super.onStart(next);
41-
}
42-
43-
onConsole(data) {
44-
return super.onConsole(data);
45-
}
46-
47-
onStop(next) {
48-
return super.onStop(next);
49-
}
50-
51-
doQuery(next) {
52-
return super.doQuery(next);
53-
}
54-
55-
}
29+
class Service extends Core {}
5630

5731
module.exports = Service;

storage/app/services/terraria/main.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"tshock": {
3-
"tag": "^(tshock)$",
43
"startup": {
54
"done": "Type 'help' for a list of commands",
65
"userInteraction": []

storage/app/services/voice/index.js

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24,34 +24,8 @@
2424
*/
2525
const rfr = require('rfr');
2626

27-
const Configuration = rfr('src/services/voice/main.json');
2827
const Core = rfr('src/services/index.js');
2928

30-
class Service extends Core {
31-
constructor(server) {
32-
super(server, Configuration);
33-
}
34-
35-
onPreflight(next) {
36-
return super.onPreflight(next);
37-
}
38-
39-
onStart(next) {
40-
return super.onStart(next);
41-
}
42-
43-
onConsole(data) {
44-
return super.onConsole(data);
45-
}
46-
47-
onStop(next) {
48-
return super.onStop(next);
49-
}
50-
51-
doQuery(next) {
52-
return super.doQuery(next);
53-
}
54-
55-
}
29+
class Service extends Core {}
5630

5731
module.exports = Service;

storage/app/services/voice/main.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"mumble": {
3-
"tag": "^(mumble)$",
43
"startup": {
54
"done": "Server listening on",
65
"userInteraction": [
@@ -26,7 +25,6 @@
2625
"query": "mumbleping"
2726
},
2827
"teamspeak": {
29-
"tag": "^(ts3)$",
3028
"startup": {
3129
"done": "listening on 0.0.0.0:",
3230
"userInteraction": []

0 commit comments

Comments
 (0)