- Tested Minecraft Versions:
- 1.12Just do "/freeze player" and enjoy
players can't move,
can't use commands
/freeze player - freeze and unfreeze players
You can't unfreeze yourself because you can't execute commands if you're freezed.
I just edited the code for a second.