Define "crash my server"... does it crash at runtime? Does it crash start? Any error message?

When getVelocity() works but no other functions, I suspect you still have the closer-stuff in.