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

NeonFox__

Member
Oct 25, 2019
16
0
0
23
Hello! I am trying to make a command where when you do "/build" for admins you can build in worldguard regions, but when you have it not on you cannot build in worldguard regions. (I am pretty garbage at skript) Here is the code I got so far.
upload_2019-11-7_7-37-13.png

I got some errors oof
Code:
Code:
command /build:
permission: "buildbypass.admin"
permission message: &4Denied Access!&cYou do not have permission to use this command!
trigger:
  on break:
    if player has permission "buildbypass.admin"
    stop
  else:
    send "&cYou don't have build mode on! Do &e/build &cif you want to build anywhere!"

Cheers if you message me on discord "ugly scp tato#3884" or reply to me with the complete code!
 

Attachments

  • upload_2019-11-7_7-37-2.png
    upload_2019-11-7_7-37-2.png
    87.7 KB · Views: 185
you are attempting to use an event within a trigger.

This is the basic structure of Skript
code_language.skript:
event:
    condition:
        effect
You cant use an event within another event/trigger(command).

Your best bet is to create a variable in your command, setting it to true/false, and then use an event, check the variable, and cancel event if need be.
 
you are attempting to use an event within a trigger.

This is the basic structure of Skript
code_language.skript:
event:
    condition:
        effect
You cant use an event within another event/trigger(command).

Your best bet is to create a variable in your command, setting it to true/false, and then use an event, check the variable, and cancel event if need be.
Oh, okay thanks I got it now!
 
Status
Not open for further replies.