imported from my old dream mod
register command with server