A small Paper plugin that pulls a git repo from in game and reloads the server.
Handy for a datapack or resource pack you keep in git: push a change, then run
/git pull in game to sync and reload without touching the console.
- Build the jar (see Build) or drop a released
gitmc-*.jarintoplugins/. - Start the server once so it writes
plugins/gitmc/config.yml. - Set
repositoryto the folder that holds the.gitdirectory. - Restart or run
/reload.
plugins/gitmc/config.yml:
# Path to the git repo to pull (the folder that contains .git).
# Absolute, or relative to the server folder. Blank disables pulls.
repository: ""
# Seconds a player must wait between /git pull commands.
cooldown-seconds: 10Needs the gitmc.use permission (default: op).
/git pullpulls the current branch and reloads/git pull <branch>switches to that branch and pulls it/git pull -silentpulls without announcing to ops/git version [n]shows the branch and the latest commit, or n commits (1 to 20)/git helplists the commands
Java 25 and the bundled Gradle wrapper:
./gradlew buildThe jar lands in build/libs/.