This command disables the automatic spawning of monsters in the world you're currently in. Use the command /enablespawning to enable.
The syntax for the disablespawning command is as follows:
/disablespawning Admin Only
Find below working examples of the disablespawning command.
This is the only way you can execute the /disablespawning command. See [[/command/enablespawning]this page] for help enabling spawning.