Would someone be able to assist me with backstab? I know how it works kinda I just dont know how to pull it off
Check EntityDamageByEntityEvent, then check if the player can backstab (e.g. is he a spy?). Then check if the directions match. If they do, add damage / kill the enemy / whatever.
I want to know how to check if the damager is behind the target (backstabbing) so it can deal additional damage
Code:java victim.getLocation().getDirection().angle(attacker.getLocation().getDirection()) * 180 / Math.PI This line will get you the angle in degrees. You could take a look in existing, open source, plugins, that offer backstab or backstab like features.