Définir GameMode de Player Spigot
// Available gamemodes: SURVIVAL, CREATIVE, ADVENTURE, SPECTATOR
player.setGameMode(GameMode.CREATIVE);
Nervous Narwhal
// Available gamemodes: SURVIVAL, CREATIVE, ADVENTURE, SPECTATOR
player.setGameMode(GameMode.CREATIVE);