Help with Kill-Rewards Self-Kill Protection

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

CrazyDean__

Member
Jun 30, 2024
1
0
1
23
So im playing on 1.19.4 and i just need help with my Skript. I already have a Kill-Rewards Skript but the Players can Kill themselves with a Crossbow and Rockets and they also get the Drops from that. Could anyone help? This is my Skript so far (I'd also take help for the existing Skript lol)

on death:
victim is a player
attacker is a player
add 1 to {%attacker's uuid%::kills}
if attacker is player:
give attacker 1 scute named "&a&lKill Reward" with lore "&4Redeem your Key at Spawn"


command killcount [<offlineplayer>]:
trigger:
if arg-1 is not set:
send "Your Killcount is %{%player's uuid%::kills} ? 0%"
else:
send "%arg-1%'s Killcount is %{%arg-1's uuid%::kills} ? 0%"

command killcountreset [<offlineplayer>]:
trigger:
if arg-1 is not set:
set {%player's uuid%::kills} to 0
send "&4You reset your Killcount"
else:
set {%arg-1's uuid%::kills} to 0
send "&4You reset %arg-1%'s Killcount"
permission: killcount.reset.use
permission message: &4&lYou do not have Permissions to use that Command![/CODE]