How about the gamemode? I don`t get how to tell that creative is a gamemode setting. if(player.getGameMode()==Creative) {