Skip to content

Commit

Permalink
Revert "Add mc-send-to-console support (#228)"
Browse files Browse the repository at this point in the history
This reverts commit f5c95df.
  • Loading branch information
itzg committed Mar 10, 2022
1 parent f5c95df commit 7fd0f9e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 33 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ RUN easy-add --var version=1.5.0 --var app=restify --file {{.app}} --from https:

RUN easy-add --var version=0.5.0 --var app=mc-monitor --file {{.app}} --from https://github.com/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_linux_${ARCH}.tar.gz

COPY scripts/* /opt/
COPY bin/* /usr/local/bin/
COPY *.sh /opt/

COPY property-definitions.json /etc/bds-property-definitions.json

Expand Down
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,17 +188,7 @@ For more information [FoxyNoTail](https://www.youtube.com/watch?v=nWBM4UFm0rQ&t=
For more information about managing Bedrock Dedicated Servers in general, [check out this Reddit post](https://old.reddit.com/user/ProfessorValko/comments/9f438p/bedrock_dedicated_server_tutorial/).
## Sending commands to the server
To send individual commands to the server, exec `mc-send-to-console` inside the container passing the server command as its arguments. For example, the following would disable the `falldamage` gamerule:
```shell
docker exec $container mc-send-to-console gamerule falldamage false
```

> NOTE: to see the output/results of the command, use `docker logs -f $container`
## Interactive server console
## Executing server commands
Assuming you started container with stdin and tty enabled (such as using `-it`), you can attach to the container's console by its name or ID using:
Expand Down
6 changes: 1 addition & 5 deletions scripts/bedrock-entry.sh → bedrock-entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,4 @@ set-property --file server.properties --bulk /etc/bds-property-definitions.json
export LD_LIBRARY_PATH=.

echo "Starting Bedrock server..."

mkfifo /var/run/bds-stdin
# See https://serverfault.com/a/1088115/196770
sleep infinity > /var/run/bds-stdin &
exec ./bedrock_server-"${VERSION}" < /var/run/bds-stdin
exec ./bedrock_server-${VERSION}
15 changes: 0 additions & 15 deletions bin/mc-send-to-console

This file was deleted.

0 comments on commit 7fd0f9e

Please sign in to comment.