#!/bin/sh

if [ "$2" != "POST-DEINSTALL" ]; then
    exit 0
fi

find "%%PREFIX%%/minecraft-server/libraries" -type d -empty -delete
find "%%PREFIX%%/minecraft-server/versions" -type d -empty -delete

echo
echo "NOTE: The game world has not been deleted. It is still in"
echo "/var/db/minecraft-server. If it is no longer required, it will"
echo "need to be manually deleted."
echo "Also, you may wish to delete any remaining files in"
echo "%%PREFIX%%/minecraft-server, %%ETCDIR%% and /var/log/minecraft-server"
