I was looking through forums and found a skript for anti naked killing:
on damage of player:
if attacker is a player:
if victim isn't wearing armor:
cancel event
send "&c&lHey!&7 You can't kill unarmored players." to attacker
if attacker isn't wearing armor:
if victim is wearing armor:
cancel event
send "&c&lHey!&7 You can't kill players while not wearing armor." to attacker
Creds: 8pixel
I dont know how to skript myself so I thought I would ask here. How would I make it so they still cant be attacked
if they have armour in their inventory, enderchest and pvault. I am using these plugins:
https://www.spigotmc.org/resources/personal-vaults.75159/
https://www.spigotmc.org/resources/custom-enderchest.8868/