So I'm starting to get familiar with skript but im having troubles understanding how to store data
Basically, what this code does is it gives a player a crystal for each kill, however im trying to get it where it wont give the crystal if that player has killed that same player in the last 5 minutes
Anyone have an idea of how I could go about this?
Basically, what this code does is it gives a player a crystal for each kill, however im trying to get it where it wont give the crystal if that player has killed that same player in the last 5 minutes
Anyone have an idea of how I could go about this?
Code:
on death of a player:
if attacker is a player:
if "%region at player%" contains "pvp":
if ip of attacker contains ip of victim:
send "{@p} &7Killing someone with the same IP will not award you a pvp crystal!" to attacker
else:
make console execute command "/crystal give %attacker% 1"