Greetings,
I've stumbled across a problem while writing a KitPVP plugin I am working on for a server.
This problem consists of players having the ability to claim more than one kit, however, I do not want this luxury to occur anymore. Therefore, players will only be able to claim 1 kit per life, until the die.
However, this code provided below does not seem to be working correctly.
Could someone assist me this is occurrence?
I've stumbled across a problem while writing a KitPVP plugin I am working on for a server.
This problem consists of players having the ability to claim more than one kit, however, I do not want this luxury to occur anymore. Therefore, players will only be able to claim 1 kit per life, until the die.
However, this code provided below does not seem to be working correctly.
Could someone assist me this is occurrence?
code_language.skript:
on join:
set {kit.%player%} to true
on quit:
set {kit.%player%} to false
on death:
set {kit.%player%} to true
Command /testing:
Trigger:
if {kit.%player%} is true:
Send "Received." to player
set helmet of the player to a chain helmet of unbreaking 5 and protection 1
set chestplate of the player to a chain chestplate of unbreaking 5 and protection 1
set leggings of the player to a chain leggings of unbreaking 5 and protection 1
set boots of the player to a chain boots of unbreaking 5 and protection 1
set slot 0 of player's inventory to iron sword of sharpness 2
set slot 1 of player's inventory to fishing rod of unbreaking 5
set {kit.%player%} to false
if {kit.%player%} is false:
Send "You can only get a kit once you have died." to player
stop