Files
docker-compose_files/neoforge/cm
T
2026-09-18 20:29:17 -06:00

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[@]}"