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 out 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.

Solved Skript blocks part of my script.

Discussion in 'Skript' started by FireRoz, Nov 4, 2020.

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

    FireRoz Active Member

    Joined:
    May 28, 2020
    Messages:
    134
    Likes Received:
    5
    Hey,
    I'm currently coding a Skript and everything worked.
    1 day later (present day) it ignored it.
    When I join it should turn the command off but it doesn't.
    Heres my Minecraft version:
    1.8
    Here's my code:
    Code (Text):
    1. options:
    2.     prefix: &8(&f&lBuildToggle&8)&r
    3. command /buildtoggle:
    4.   aliases: /build
    5.   permission: build
    6.   permission message: {@prefix} &cYou don't have the required permission to perform this command.
    7.   trigger:
    8.     if {build.%player%} is not set:
    9.       set {build.%player%} to true
    10.       send "{@prefix} &cYour build mode is now off"
    11.       stop trigger
    12.  
    13.     if {build.%player%} is set:
    14.       clear {build.%player%}
    15.     send "{@prefix} &aYour build mode is now on"
    16.  
    17. on block place:
    18.   if {build.%player%} is true:
    19.     cancel event
    20.     send "{@prefix} &cYou cannot build because your build mode is off!"
    21.   if {build.%player%} is false:
    22.     stop trigger
    23.     stop
    24.  
    25. on block break:
    26.   if {build.%player%} is true:
    27.     cancel event
    28.     send "{@prefix} &cYou cannot build because your build mode is off!"
    29.   if {build.%player%} is false:
    30.     stop trigger
    31.     stop
    32.  
    33. on join:
    34.   player has the permission "build"
    35.   {build.%player%} is false:
    36.     make player execute command "/build"
    it also started blocking other skripts.
    Look:
    Code (Text):
    1. command /clearchat:
    2.   aliases: /clearc, /cchat
    3.   permission: clearchat.use
    4.   permission message: "&cYou cant do that!"
    5.   trigger:
    6.     loop all players:
    7.       if loop-player doesn't have permission "clearchat.use":
    8.         loop 1000 times:
    9.           send " " to loop-player
    10.         broadcast "&e&lThe chat has been cleared."
    11.       else if loop-player has permission "clearchat.use":
    12.         stop
    --- Double Post Merged, Nov 4, 2020, Original Post Date: Nov 4, 2020 ---
    Please help?
    please
    ===SOLVED===
    PlugMan has a bug when you disable Skript, /sk and /sk arguments will work, but not the skripts themselves.
    Don't ask me I just started with Java
     
    #1 FireRoz, Nov 4, 2020
    Last edited: Nov 4, 2020
  2. Marsbar

    Marsbar Active Member

    Joined:
    Mar 31, 2019
    Messages:
    131
    Likes Received:
    4
    Code (Text):
    1. command /clearchat:
    2.   aliases: /clearc, /cchat
    3.   permission: clearchat.use
    4.   permission message: "&cYou cant do that!"
    5.   trigger:
    6.     loop 1000 times:
    7.       send "&7 &8" to all players where [input doesn't have permission "clearchat.use"]
    8.     broadcast "&e&lThe chat has been cleared."
    --- Double Post Merged, Nov 4, 2020, Original Post Date: Nov 4, 2020 ---
    Code (Text):
    1. options:
    2.     prefix: &8(&f&lBuildToggle&8)&r
    3. command /buildtoggle:
    4.   aliases: /build
    5.   permission: build
    6.   permission message: {@prefix} &cYou don't have the required permission to perform this command.
    7.   trigger:
    8.     if {build.%player%} is not set:
    9.       set {build.%player%} to true
    10.       send "{@prefix} &cYour build mode is now off"
    11.  
    12.     else if {build.%player%} is set:
    13.       clear {build.%player%}
    14.       send "{@prefix} &aYour build mode is now on"
    15.  
    16. on block place:
    17.   if {build.%player%} is set:
    18.     cancel event
    19.     send "{@prefix} &cYou cannot build because your build mode is off!"
    20.  
    You don't need the 3 last lines of code :emoji_wink:

    The reason it don't work is because you clear the variable instead of changing it to false.
     
  3. FireRoz

    FireRoz Active Member

    Joined:
    May 28, 2020
    Messages:
    134
    Likes Received:
    5
    W
    What about all the other skripts? Why wont they work?
    http://www.mediafire.com/folder/xihe8aep41lp6/scripts
    heres my scripts folder.
    I cant be asked to copy every one of them -_-
    P,S at the past these skript worked but now, "Unknown command. Type "/help" for help.
     
  4. Marsbar

    Marsbar Active Member

    Joined:
    Mar 31, 2019
    Messages:
    131
    Likes Received:
    4
    Wrong skript version?
     
  5. FireRoz

    FireRoz Active Member

    Joined:
    May 28, 2020
    Messages:
    134
    Likes Received:
    5
     
Thread Status:
Not open for further replies.

Share This Page

Loading...