1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help skript statements with command thing pls

Discussion in 'Skript' started by TubeVillager, Jan 29, 2019.

Thread Status:
Not open for further replies.
  1. T

    TubeVillager Active Member

    Joined:
    Jan 29, 2019
    Messages:
    28
    Likes Received:
    1
    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.
     
  2. L

    Joined:
    Jan 26, 2017
    Messages:
    363
    Likes Received:
    19
    Code (Text):
    1. set {trapped.%{_player}%} to false
    2. set {trapped.%arg 1%} to false
     
  3. Runakai1

    Runakai1 Well-Known Member

    Joined:
    Apr 27, 2018
    Messages:
    396
    Likes Received:
    20
    Never ever in your entire skript carrer use variables like this --> {hello.%player%} I'm gonna find and eat you if so.
    Code (Skript):
    1.  
    2. command /build [<player>]:
    3.     permission: *
    4.     trigger:
    5.         if arg-1 is set:
    6.             if {build::%arg-1%} is set:
    7.                 delete {build::%arg-1%}
    8.                 send "BUILD DISABLED FOR %ARG-1%"
    9.             else:
    10.                 set {build::%arg-1%} to true
    11.                 send "BUILD ENABLED FOR %arg-1%"
    12.                
    13. on break:
    14.     if {build::%player%} is not set:
    15.         cancel event
    16.        #Continue
     
  4. T

    TubeVillager Active Member

    Joined:
    Jan 29, 2019
    Messages:
    28
    Likes Received:
    1
    Thanks guys it works now! :emoji_grinning:
     
Thread Status:
Not open for further replies.
Loading...