A young man pleaded guilty on Tuesday to killing his romantic rival with a sword after recruiting the help of two friends.