Minecraft server admin

From Jahrome907/minecraft-agent-skills · View interactive version

Minecraft server admin is an AI agent skill from the GitHub repository Jahrome907/minecraft-agent-skills. Set up, operate, tune, and troubleshoot Minecraft Java 26.x and legacy 1.21.x servers across Paper, Purpur, Folia, Velocity, Fabric, and NeoForge. Use for infrastructure, backups, proxies, and live operations, not plugin or mod development.

How to use this skill

Skill file

Minecraft Server Administration Skill

Scope and Routing Boundaries

Routing Boundaries

References


Deployment Decision Matrix

Use this table when choosing a deployment. For an existing server, inspect its

stack and version first and preserve them unless migration is requested.

| Deployment profile | Recommended stack | Pick this when | Watch-outs |

|---|---|---|---|

| Small SMP on Paper | Paper only | Up to ~30 concurrent players, broad plugin compatibility, low ops overhead | Do not over-tune early; profile before changing many defaults |

| Larger public Paper server | Paper + Spark + stricter plugin/change control | Public server with frequent joins, moderate plugin set, uptime matters | Plugin sprawl is the top TPS risk |

| Velocity-backed network | Velocity + multiple Paper backends | Hub/minigame/factions split across servers, need shared entrypoint | Forwarding/auth mismatches can block joins |

| Purpur gameplay-heavy server | Purpur (optionally behind Velocity) | You want gameplay knobs exposed in config without custom plugin code | Extra toggles increase misconfiguration risk |

| Folia high-concurrency server | Folia + Folia-compatible plugins only | Very high concurrency with region-threading goals | Many plugins are not Folia-safe |

| Fabric/NeoForge mod server | Fabric or NeoForge server build | You require loader mods, custom content, modpack behavior | Bukkit/Paper plugins do not apply |

Deployment Type Routing

Java versions

Java 21. Verify the exact Paper/Purpur build and installed plugins before a

version change.

version required by that exact proxy release rather than applying the current

version by default.


Playbook: Performance Tuning

Step 1: Establish baseline

Collect a baseline before edits. Linux host example:

free -h
top -b -n 1 | head -n 25

Windows PowerShell host example:

Get-CimInstance Win32_OperatingSystem | Select-Object FreePhysicalMemory,TotalVisibleMemorySize
Get-Process java | Sort-Object CPU -Descending | Select-Object -First 5 Id,CPU,WorkingSet,Path

In server console:

tps
mspt
spark healthreport

Record:

Step 2: Profile the real bottleneck

Use Spark instead of guesswork:

spark profiler --timeout 180
spark tps
spark tickmonitor --threshold-tick 50

The 50 ms threshold reports ticks that exceed one normal 20 TPS tick; adjust it

only when the incident threshold is intentionally different.

Then identify whether the issue is:

Step 3: Apply targeted fixes

Do not tune everything at once. Apply one group at a time.

  1. Chunk and simulation pressure:
  1. Entity pressure:
  1. Plugin pressure:

Step 4: Use stable startup flags

For Java 25 on current Paper/Purpur, start with a simple measured baseline:

java -Xms4G -Xmx4G -jar server.jar --nogui

Increase heap only when profiling and player load justify it. Add collector flags

only after validating them against the exact JDK and Paper version.

Step 5: Verify improvements

After each change set:

spark tps
spark healthreport

Keep the change only if MSPT/tick stability improves under representative load.


Playbook: Plugin Operations

Safe plugin change workflow

  1. Build a plugin inventory:
  1. Stage updates:
  1. Production rollout window:
  1. Post-rollout verification:

Rollback checklist


Playbook: Proxy and Forwarding (Velocity)

Velocity baseline

velocity.toml essentials:

bind = "0.0.0.0:25565"
online-mode = true
player-info-forwarding-mode = "modern"
forwarding-secret-file = "forwarding.secret"

Backend server requirements

server.properties on backend:

online-mode=false

Paper backend forwarding support (config/paper-global.yml):

proxies:
  velocity:
    enabled: true
    online-mode: true
    secret: "paste-the-shared-forwarding-secret-here"

Use the same secret value stored in Velocity's forwarding.secret file; the backend

config takes the secret string itself, not a file path.

Keep enforce-secure-profile at the server default unless you are handling a

specific legacy-client or incident workaround. It is not part of the baseline

Velocity setup. Also confirm settings.bungeecord: false in spigot.yml; do

not enable BungeeCord forwarding and Velocity modern forwarding at the same time.

Validation runbook

  1. Confirm proxy port is reachable from clients.
  2. Confirm backend is firewalled from direct internet access.
  3. Join through proxy and verify:

Common proxy incidents


Playbook: Backup and Recovery

Backup policy template

| Asset | Frequency | Retention | Notes |

|---|---|---|---|

| Every configured world folder | Hourly incremental + daily full | 7 daily, 4 weekly | Include custom and externally stored worlds |

| plugins/, config/, and root server state | Daily | 14 daily | Required for operational restore |

| Proxy config/secrets | Daily | 30 daily | Store encrypted off-host |

| Container/orchestration files | On change + weekly | 8 weeks | Git-tracked where possible |

Example backup script (Paper/Purpur)

For a production server, quiesce world writes before copying live world folders.

The example below assumes a maintenance window and a cleanly stopped server. If

you use RCON-based live backups instead, choose a client/secret mechanism that

does not expose the password in command arguments. A safe implementation must

run save-off, then save-all, copy the data, and guarantee save-on cleanup

even when the copy fails. Do not treat a flush or save-all alone as a live

backup protocol. Folia disables save-all; use a clean stop or a verified

platform snapshot there. Test the restore path before trusting any backup.

For Fabric or NeoForge recovery, additionally inventory mods/ and record the

exact loader launch state: Minecraft and loader versions, Java version, launch

command and arguments, launcher or installer artifacts, and any version or

library manifests used by that deployment. Restore those matching components

with the configured world folders; this Paper/Purpur example does not capture

them for you.

Supply the complete world-folder list as arguments, relative to SERVER_ROOT,

after checking level-name and any multi-world plugin configuration. Back up

worlds stored outside that root separately; do not infer coverage from world*.

#!/usr/bin/env bash
set -euo pipefail

if [[ "${SERVER_STOPPED_CONFIRMED:-}" != "1" ]]; then
  echo "Set SERVER_STOPPED_CONFIRMED=1 only after stopping the server cleanly." >&2
  exit 1
fi

DATE="$(date +%Y-%m-%d_%H-%M-%S)"
BACKUP_ROOT="/backups/minecraft"
SERVER_ROOT="/srv/minecraft"
DEST="${BACKUP_ROOT}/${DATE}"

if [[ "$#" -eq 0 ]]; then
  echo "Usage: backup.sh <world-folder> [additional-world-folders...]" >&2
  exit 1
fi
for world_dir in "$@"; do
  if [[ ! -d "$SERVER_ROOT/$world_dir" ]]; then
    echo "Missing configured world folder: $world_dir" >&2
    exit 1
  fi
done

mkdir -p "$DEST"

tar -czf "${DEST}/worlds.tar.gz" -C "$SERVER_ROOT" -- "$@"

state_items=()
for item in \
  plugins config server.properties bukkit.yml spigot.yml paper-global.yml \
  paper-world-defaults.yml permissions.yml ops.json whitelist.json \
  banned-players.json banned-ips.json; do
  [[ -e "$SERVER_ROOT/$item" ]] && state_items+=("$item")
done

if [[ "${#state_items[@]}" -gt 0 ]]; then
  tar -czf "${DEST}/server-state.tar.gz" -C "$SERVER_ROOT" "${state_items[@]}"
fi

Recovery drill (must be tested)

  1. Stop server.
  2. Restore selected backup to staging directory.
  3. Validate ownership/permissions.
  4. Start server in maintenance mode.
  5. Verify:
  1. Reopen to players.

Define targets:


Playbook: Live Troubleshooting

Incident triage flow

  1. Classify incident:
  1. Capture evidence first. Linux host example:
df -h
free -h

Windows PowerShell host example:

Get-PSDrive -PSProvider FileSystem
Get-CimInstance Win32_OperatingSystem | Select-Object FreePhysicalMemory,TotalVisibleMemorySize

From server/proxy console:

spark tps
spark healthreport
  1. Stabilize:
  1. Recover and document:

Fast symptom map

| Symptom | First checks | Typical root cause |

|---|---|---|

| Startup crash after plugin update | latest logs, plugin dependency chain | incompatible plugin/API mismatch |

| High MSPT only at peak hours | Spark profiler, entity/chunk stats | mob farms, heavy scheduled tasks, chunk I/O |

| Players cannot join via proxy | forwarding mode + secret + backend exposure | Velocity/backend config mismatch |

| Periodic hard lag spikes | GC pauses + autosave + backup overlap | memory pressure, backup I/O contention |


Operational Config Reference

`server.properties` high-impact keys

max-players=100
view-distance=10
simulation-distance=8
sync-chunk-writes=true
max-tick-time=60000
enable-rcon=false

On a fresh Java 26.3 server, white-list defaults to true. If a player cannot

join, check the active allowlist and the intended access policy before changing

it. For 26.3 automation that watches server logs, verify its event triggers in

staging. Mojang removed some log messages and directs integrations to the

Minecraft Server Management Protocol where it exposes the needed events.

Java 26.3 release notes.

`bukkit.yml` and `spigot.yml`

Use Spigot/Bukkit docs as authoritative for version-specific defaults and side effects.

Tune conservatively and re-measure after every change set.

Paper config files

Adjust these only after profiling identifies an actionable bottleneck.


Deployment Patterns

Docker Compose (Paper)

services:
  paper:
    image: itzg/minecraft-server:java25
    container_name: mc-paper
    environment:
      EULA: "TRUE"
      TYPE: "PAPER"
      VERSION: "26.3"
      MEMORY: "10G"
    ports:
      - "25565:25565"
    volumes:
      - ./data:/data
    restart: unless-stopped

This Docker example targets current Paper 26.3 and Java 25. Re-check plugin

compatibility and take a restorable backup before changing an existing server's

Minecraft or Java line.

Pterodactyl/Wings notes


Security Hardening Checklist


References

Paper (primary)

Spigot/Bukkit (primary config reference)

Proxy and ecosystem docs

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.