File tree Expand file tree Collapse file tree 8 files changed +3
-116
lines changed
Expand file tree Collapse file tree 8 files changed +3
-116
lines changed Original file line number Diff line number Diff line change 2525const rfr = require ( 'rfr' ) ;
2626const _ = require ( 'lodash' ) ;
2727
28- const Configuration = rfr ( 'src/services/minecraft/main.json' ) ;
2928const Core = rfr ( 'src/services/index.js' ) ;
3029
3130class 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
6038module . exports = Service ;
Original file line number Diff line number Diff line change 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" : [
3025 "query" : " minecraftping"
3126 },
3227 "spigot" : {
33- "tag" : " ^(spigot)$" ,
3428 "symlink" : " vanilla" ,
3529 "configs" : {
3630 "spigot.yml" : {
4236 }
4337 },
4438 "bungeecord" : {
45- "tag" : " ^(bungeecord)$" ,
4639 "startup" : {
4740 "done" : " Listening on "
4841 },
6457 "query" : " minecraftping"
6558 },
6659 "sponge" : {
67- "tag" : " ^(sponge)$" ,
6860 "symlink" : " vanilla" ,
6961 "startup" : {
7062 "userInteraction" : [
Original file line number Diff line number Diff line change 2424 */
2525const rfr = require ( 'rfr' ) ;
2626
27- const Configuration = rfr ( 'src/services/srcds/main.json' ) ;
2827const 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
5731module . exports = Service ;
Original file line number Diff line number Diff line change 11{
22 "srcds" : {
3- "tag" : " ^(srcds)$" ,
43 "startup" : {
54 "done" : " Assigned anonymous gameserver Steam ID" ,
65 "userInteraction" : []
1413 "query" : " protocol-valve"
1514 },
1615 "ark" : {
17- "tag" : " ^(ark)$" ,
1816 "symlink" : " srcds" ,
1917 "startup" : {
2018 "done" : " Setting breakpad minidump AppID"
Original file line number Diff line number Diff line change 2424 */
2525const rfr = require ( 'rfr' ) ;
2626
27- const Configuration = rfr ( 'src/services/terraria/main.json' ) ;
2827const 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
5731module . exports = Service ;
Original file line number Diff line number Diff line change 11{
22 "tshock" : {
3- "tag" : " ^(tshock)$" ,
43 "startup" : {
54 "done" : " Type 'help' for a list of commands" ,
65 "userInteraction" : []
Original file line number Diff line number Diff line change 2424 */
2525const rfr = require ( 'rfr' ) ;
2626
27- const Configuration = rfr ( 'src/services/voice/main.json' ) ;
2827const 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
5731module . exports = Service ;
Original file line number Diff line number Diff line change 11{
22 "mumble" : {
3- "tag" : " ^(mumble)$" ,
43 "startup" : {
54 "done" : " Server listening on" ,
65 "userInteraction" : [
2625 "query" : " mumbleping"
2726 },
2827 "teamspeak" : {
29- "tag" : " ^(ts3)$" ,
3028 "startup" : {
3129 "done" : " listening on 0.0.0.0:" ,
3230 "userInteraction" : []
You can’t perform that action at this time.
0 commit comments