i need quick help pls

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

    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!

elyexee

Member
Jul 16, 2023
30
0
6
so i did this skript of newbie protection and trying to put so people can turn it off and cant seem to work it does the feddback but doesnt work

Code:
on first join:
    set {newbie::%player%} to true
    wait 15 minutes
    delete {newbie::%player%}


on damage:
    if {newbie::%victim%} is true:
    if "%region at victim%" contains "box":
    if attacker is player:
    cancel event
    send "&7This player has Newbie Protection" to attacker
   
command /newbieprotection off:
    trigger:
        if {newbie::%player%} = true:
        delete {newbie::%player%}
        send "&f&l[&4&lBoxStealerr&f&l] &fNewbie Protection has been turned off." to player
 
Okay, #1 can we indent properly. #2 you dont want a wait 15 minutes because of the fact if the server restarts they will have infinite newbie protection.