// Available gamemodes: SURVIVAL, CREATIVE, ADVENTURE, SPECTATOR player.setGameMode(GameMode.CREATIVE);