I coded it so that when the player attacks any entity, it has a chance that the player is randomly attacked with the same damage. So if I attack a chicken, it has a random chance that the same damage I do to the chicken, is returned to me the player.
Once you place the jar file in the plugins folder the plugin will begin to run.