Solved Skript blocks part of my script.

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

FireRoz

Active Member
May 28, 2020
133
6
18
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:
options:
    prefix: &8(&f&lBuildToggle&8)&r
command /buildtoggle:
  aliases: /build
  permission: build
  permission message: {@prefix} &cYou don't have the required permission to perform this command.
  trigger:
    if {build.%player%} is not set:
      set {build.%player%} to true
      send "{@prefix} &cYour build mode is now off"
      stop trigger
  
    if {build.%player%} is set:
      clear {build.%player%}
    send "{@prefix} &aYour build mode is now on"

on block place:
  if {build.%player%} is true:
    cancel event
    send "{@prefix} &cYou cannot build because your build mode is off!"
  if {build.%player%} is false:
    stop trigger
    stop
  
on block break:
  if {build.%player%} is true:
    cancel event
    send "{@prefix} &cYou cannot build because your build mode is off!"
  if {build.%player%} is false:
    stop trigger
    stop
  
on join:
  player has the permission "build"
  {build.%player%} is false:
    make player execute command "/build"

it also started blocking other skripts.
Look:
Code:
command /clearchat:
  aliases: /clearc, /cchat
  permission: clearchat.use
  permission message: "&cYou cant do that!"
  trigger:
    loop all players:
      if loop-player doesn't have permission "clearchat.use":
        loop 1000 times:
          send " " to loop-player
        broadcast "&e&lThe chat has been cleared."
      else if loop-player has permission "clearchat.use":
        stop
[doublepost=1604494684,1604484317][/doublepost]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
 
Last edited:
Code:
command /clearchat:
  aliases: /clearc, /cchat
  permission: clearchat.use
  permission message: "&cYou cant do that!"
  trigger:
    loop 1000 times:
      send "&7 &8" to all players where [input doesn't have permission "clearchat.use"]
    broadcast "&e&lThe chat has been cleared."
[doublepost=1604502214,1604501978][/doublepost]
Code:
options:
    prefix: &8(&f&lBuildToggle&8)&r
command /buildtoggle:
  aliases: /build
  permission: build
  permission message: {@prefix} &cYou don't have the required permission to perform this command.
  trigger:
    if {build.%player%} is not set:
      set {build.%player%} to true
      send "{@prefix} &cYour build mode is now off"
  
    else if {build.%player%} is set:
      clear {build.%player%}
      send "{@prefix} &aYour build mode is now on"
 
on block place:
  if {build.%player%} is set:
    cancel event
    send "{@prefix} &cYou cannot build because your build mode is off!"

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.
 
W
Code:
command /clearchat:
  aliases: /clearc, /cchat
  permission: clearchat.use
  permission message: "&cYou cant do that!"
  trigger:
    loop 1000 times:
      send "&7 &8" to all players where [input doesn't have permission "clearchat.use"]
    broadcast "&e&lThe chat has been cleared."
[doublepost=1604502214,1604501978][/doublepost]
Code:
options:
    prefix: &8(&f&lBuildToggle&8)&r
command /buildtoggle:
  aliases: /build
  permission: build
  permission message: {@prefix} &cYou don't have the required permission to perform this command.
  trigger:
    if {build.%player%} is not set:
      set {build.%player%} to true
      send "{@prefix} &cYour build mode is now off"
 
    else if {build.%player%} is set:
      clear {build.%player%}
      send "{@prefix} &aYour build mode is now on"
 
on block place:
  if {build.%player%} is set:
    cancel event
    send "{@prefix} &cYou cannot build because your build mode is off!"

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.
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.
 
Status
Not open for further replies.