options:
p: &8[&3Xasa&8]
perm: &cYou Don't have the permission!
ap: xasa.admin
command /lsw [<text>]:
permission: {@ap}
permission message: {@perm}
trigger:
if arg 1 is "al" or "take":
give diamond sword named "&c&lLife steal sword" to player
send "{@p} &fYou tooked life steal sword"
if arg 1 is not set:
send "{@p} &cLife steal sword help page."
send " "
send "{@p} &6&l/lsw <al,take>"
on damage:
if attacker's tool is diamond sword:
if display name of attacker's tool contains "&c&lLife steal sword":
chance of 25%:
remove 2 from healt of victim
add 2 to healt of attacker
send "{@p} &a%attacker% &fstoled your 2 hearts!" to victim
send "{@p} &fYou're stoled 2 hearts from &c%victim%" to attacker