Hi,
In the latest Debian the script fails. Looks like the "screen" version in it expects the options in a different way.
Changing from:
screen -dmS ${SCREEN_NAME} -L ${SCREEN_NAME} java -Xmx${MEMORY}m -Xms$(($MEMORY/2))m -jar server.jar
To:
screen -dmSL ${SCREEN_NAME} java -Xmx${MEMORY}m -Xms$(($MEMORY/2))m -jar server.jar
fixes the issue.
@red51, you may want to change it, it should work for other versions as well.