It's hardly safe but I changed the USERNAME in the script to root to force it to accept me as root, that works.
Just a note to anyone with a similar problem, I really would not recommend changing the username to root, it's pretty stupid and leaves your server vulnerable, this turned out to be a permissions problem so I just used the chown command to recursively set all of my minecraft folder back to my minecraft user account (not sure why it changed to begin with but there it is)
Thanks havocx42, Cheap Shot and kyneff for your fast replies.