mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
18 lines
507 B
Plaintext
18 lines
507 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
. ${SCRIPTS:-/}start-utils
|
||
|
|
||
|
if [ -d /plugins ]; then
|
||
|
case ${TYPE} in
|
||
|
SPIGOT|BUKKIT|PAPER)
|
||
|
mkdir -p /data/plugins
|
||
|
log "Copying plugins over..."
|
||
|
# Copy plugins over using rsync to allow deeply nested updates of plugins
|
||
|
# only updates files if the source file is newer and print updated files
|
||
|
rsync -a --out-format="update:%f:Last Modified %M" --prune-empty-dirs --update /plugins /data
|
||
|
;;
|
||
|
esac
|
||
|
fi
|
||
|
|
||
|
exec ${SCRIPTS:-/}start-finalSetupServerProperties $@
|