You'd want to listen to the PlayerJoinEvent
. When the name of the player that joins is "Fniler", you can execute the command (or preferably, use the kick
method). Note that what you're asking for sounds a lot like a ban, in which case it may be easier to simply ban this player.