Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
I have this self-made script and it does work well and performs all actions, if it is started manually, however, it does not perform the action from line 81, if it is automatically started from cron.
I recommend that you do some tests with simpler commands to try to narrow down where the mistake is. Replace the java line with having it echo something, for instance, or remove the "nice" bit. Make sure that the command runs on its own when it's not started through cron. Remove the unnecessary quotation marks from around "mc".
You'll need to keep troubleshooting and trying different things -- that's what I would do. Try running a bash script instead. Try running "echo". Keep paring things down until you find what about that line is causing the problem, and then focus on working around that.