ustaw gamemode of Player Spigoot
// Available gamemodes: SURVIVAL, CREATIVE, ADVENTURE, SPECTATOR
player.setGameMode(GameMode.CREATIVE);
Nervous Narwhal
// Available gamemodes: SURVIVAL, CREATIVE, ADVENTURE, SPECTATOR
player.setGameMode(GameMode.CREATIVE);