[Unit]
Description = PaperMC container
After = network.target
ConditionPathExists = /srv/minecraft

[Service]
Type = simple
ExecStartPre = -/usr/bin/podman stop papermc

ExecStart = /usr/bin/podman run \
	--rm \
	--name papermc \
	--net host \
	-v /srv/minecraft/world:/opt/minecraft/world \
	-p 23673:23673/tcp \
	papermc	


[Install]
WantedBy = default.target