I'm sure unstuck commands are gamemode-agnostic unless they teleport you to some sort of predefined spawn location. Just look for one that doesn't do that, and you should be fine.
I had one running on my server a while ago, but I've since lost the original post for it.