Skip to content

Commit 7fd0f9e

Browse files
committed
Revert "Add mc-send-to-console support (#228)"
This reverts commit f5c95df.
1 parent f5c95df commit 7fd0f9e

File tree

4 files changed

+3
-33
lines changed

4 files changed

+3
-33
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ RUN easy-add --var version=1.5.0 --var app=restify --file {{.app}} --from https:
3333

3434
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
3535

36-
COPY scripts/* /opt/
37-
COPY bin/* /usr/local/bin/
36+
COPY *.sh /opt/
3837

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

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -188,17 +188,7 @@ For more information [FoxyNoTail](https://www.youtube.com/watch?v=nWBM4UFm0rQ&t=
188188
189189
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/).
190190
191-
## Sending commands to the server
192-
193-
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:
194-
195-
```shell
196-
docker exec $container mc-send-to-console gamerule falldamage false
197-
```
198-
199-
> NOTE: to see the output/results of the command, use `docker logs -f $container`
200-
201-
## Interactive server console
191+
## Executing server commands
202192
203193
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:
204194

scripts/bedrock-entry.sh renamed to bedrock-entry.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,4 @@ set-property --file server.properties --bulk /etc/bds-property-definitions.json
160160
export LD_LIBRARY_PATH=.
161161

162162
echo "Starting Bedrock server..."
163-
164-
mkfifo /var/run/bds-stdin
165-
# See https://serverfault.com/a/1088115/196770
166-
sleep infinity > /var/run/bds-stdin &
167-
exec ./bedrock_server-"${VERSION}" < /var/run/bds-stdin
163+
exec ./bedrock_server-${VERSION}

bin/mc-send-to-console

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)