14 lines
280 B
Bash
Executable File
14 lines
280 B
Bash
Executable File
#!/bin/bash
|
|
|
|
## Send commands to the neoforge server as if in the server console
|
|
#
|
|
# Example usage:
|
|
# ./cm give pizza2d1 minecraft:oak_log 1
|
|
|
|
command=()
|
|
while [[ ! -z "${1}" ]]; do
|
|
command+=("${1}")
|
|
shift
|
|
done
|
|
sudo docker exec -i neoforge_server rcon-cli "${command[@]}"
|