How to make claimreset command

  • 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!

Vini

Member
Apr 8, 2023
28
2
3
25
So, I have a problem with a skript, it works perfectly fine, but I can't reset this {redeemskypass-%{_type}%-%{_place}%::%{_player}'s uuid%}

code_language.skript:
function skypassgiveitem(type: integer, place: integer, item: item, howmany: integer, player: player):

 
#
     # skypassgiveitem(0/1/2 (Default, Premium or Special type), 1-49 (The number for the reward), item (The item to give: e.g. {skypass::moneyhoard-mini}), number (How many of the item to give: e.g. 10), player)
     #


     if {_type} is 0:
          set {_tag} to "default"
     if {_type} is 1:
          set {_tag} to "premium"
     if {_type} is 2:
          set {_tag} to "special"
     if {redeemskypass-%{_type}%-%{_place}%::%{_player}'s uuid%} is not set:
          if {_type} is 2:
               if {_player} does not have permission "skypass.special":
                    stop
          if {_type} is 1:
               if {_player} does not have permission "skypass.premium":
                    if {_player} does not have permission "skypass.special":
                         stop
          if {_player} has space for 1 bedrock:
               set {redeemskypass-%{_type}%-%{_place}%::%{_player}'s uuid%} to true
               give {_howmany} of {_item} to {_player}

can anyone help