File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ args=" "
4
+
5
+ if [ -n " $SALT " ]; then
6
+ args=" $args --salt=$SALT "
7
+ echo Salt set to $SALT
8
+ fi
9
+
10
+ if [ -n " $PORT " ]; then
11
+ args=" $args --port=$PORT "
12
+ echo Port set to $PORT
13
+ fi
14
+
15
+ if [ " $ISOLATE " == " TRUE" ]; then
16
+ args=" $args --isolate-rooms"
17
+ echo Rooms Isolated
18
+ fi
19
+
20
+ if [ " $DISABLEREADY " == " TRUE" ]; then
21
+ args=" $args --disable-ready"
22
+ echo Readiness Indicator Disabled
23
+ fi
24
+
25
+ if [ " $DISABLECHAT " == " TRUE" ]; then
26
+ args=" $args --disable-chat"
27
+ echo Chat Disabled
28
+ fi
29
+
30
+ if [ -n " $MAXCHATLENGTH " ]; then
31
+ args=" $args --max-chat-message-length=$MAXCHATLENGTH "
32
+ echo Max Chat Message Length set to $MAXCHATLENGTH
33
+ fi
34
+
35
+ if [ -n " $MAXUNAMELENGTH " ]; then
36
+ args=" $args --max-username-length=$MAXUNAMELENGTH "
37
+ echo Max Username Length set to $MAXUNAMELENGTH
38
+ fi
39
+
40
+ if [ " $MOTD " == " TRUE" ]; then
41
+ args=" $args --motd-file=/motd.txt"
42
+ echo MOTD Enabled
43
+ fi
44
+
45
+ if [ -n " $PASSWORD " ]; then
46
+ args=" $args --password=$PASSWORD "
47
+ echo Password set to $PASSWORD
48
+ fi
49
+
50
+ if [ " $TLS " == " TRUE" ]; then
51
+ args=" $args --tls=/certs"
52
+ echo Certs Enabled
53
+ fi
54
+
55
+ exec $( eval " ./syncplayServer.py $args $@ " )
You can’t perform that action at this time.
0 commit comments