if (player.hasPlayedBefore()) Whatever you're aiming to do please make sure it's not a copy of my plugin.