Skip to content

meowKen/mc-server

Repository files navigation

Minecraft paper server

Minecraft server with paper plugin in a container

Installation

Prerequistes

  • docker installed
# Run the server container
docker compose up -d

Server settings

Most settings are in ./data/server.properties

Server logs

Just show the container logs

docker logs <container_name>

OP

Settings to add OP player can be done by creating a file ./data/ops.json filled as follow :

[
  {
    "uuid": "player_GUID_as_seen_in_server_console",
    "name": "player_NAME_as_seen_in_server_console",
    "level": 4,
    "bypassesPlayerLimit": true
  }
]

Server commands

either attach the contianer

docker attach <container_name>
# ! Attention, attaching will exit the server when exiting the console

or throw commands at the container

msg="This command is run in the server via the rcon interface !"
docker exec minecraft-server-mc-1 rcon-cli say "$msg"

Maintenance

Provide a automated backup system, wuth systemd service

# Install the service
./install-maintenance.sh

The service will run everyday at noon and do the following :

  • Notify server users 5 minutes prior to the backup
  • after the 5 minutes delay, shutdown server and container
  • do a backup that will be stored in './backup'

Have fun !

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages