Skip to content

Commit

Permalink
Delete additional player data when making a new server from an old one
Browse files Browse the repository at this point in the history
  • Loading branch information
Phidica committed Jan 27, 2017
1 parent eaf457f commit 7d7780a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcserver
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ _new()
printf "%s\n" "Done!"

printf "%s" "Cleansing imported player data... "
rm -rf "${serversDir}/${targetServer}/$(basename ${worldDir})"/{playerdata,stats} >/dev/null 2>&1
rm -rf "${serversDir}/${targetServer}/$(basename ${worldDir})"/{playerdata,stats,data/scoreboard.dat} >/dev/null 2>&1
if [[ ${?} == 0 ]]; then
printf "%s\n" "Done!"
else
Expand Down

0 comments on commit 7d7780a

Please sign in to comment.