how to change gamemode in java edition Minecraft Servers

How To Change Gamemode In Java Edition