Added DoWithUUID function

Hey.

I started working with the mc server code and this is my first pull request that adds #1579.
Please review before merging it.
I don't think that space is supposed to be there?