Help skript statements with command thing 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 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!

Status
Not open for further replies.

TubeVillager

Member
Jan 29, 2019
28
1
0
23
Hey can anyone tell me how to do this?
command /trap <player>:
trigger:
set {_player} to arg 1
set {trapped._player} to false

i want a command to untrap but when they are trapped they can not break blocks but when untrapped they can break blocks again.
 
Never ever in your entire skript carrer use variables like this --> {hello.%player%} I'm gonna find and eat you if so.
code_language.skript:
command /build [<player>]:
    permission: *
    trigger:
        if arg-1 is set:
            if {build::%arg-1%} is set:
                delete {build::%arg-1%}
                send "BUILD DISABLED FOR %ARG-1%"
            else:
                set {build::%arg-1%} to true
                send "BUILD ENABLED FOR %arg-1%"
               
on break:
    if {build::%player%} is not set:
        cancel event
       #Continue
 
Status
Not open for further replies.