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 fixed it before merging.