mirror of
https://github.com/MinecraftServerControl/mscs.git
synced 2024-11-15 14:58:18 -07:00
Use the getWorldPropertiesValue method to get the server-port
This commit is contained in:
parent
9a4d981baa
commit
cece0c8f92
@ -710,7 +710,7 @@ start() {
|
||||
# server is piped into the response.dat file.
|
||||
execute "printf '' > $WORLD_DIR/query.dat" $USER_NAME
|
||||
execute "printf '' > $WORLD_DIR/response.dat" $USER_NAME
|
||||
execute "tail -f --pid=$PID $WORLD_DIR/query.dat | nc -q 1 -u 127.0.0.1 $(getPort $1) > $WORLD_DIR/response.dat &" $USER_NAME
|
||||
execute "tail -f --pid=$PID $WORLD_DIR/query.dat | nc -q 1 -u 127.0.0.1 $(getWorldPropertiesValue $1 'server-port') > $WORLD_DIR/response.dat &" $USER_NAME
|
||||
# Create a lock file on RedHat and derivatives.
|
||||
if [ -d "/var/lock/subsys" ]; then
|
||||
touch /var/lock/subsys/minecraft_server
|
||||
|
Loading…
Reference in New Issue
Block a user