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.

My Skript is receiving many errors

Discussion in 'Skript' started by Frank King, Dec 31, 2020.

Tags:
Thread Status:
Not open for further replies.
  1. Frank King

    Frank King Member

    Joined:
    Dec 31, 2020
    Messages:
    1
    Likes Received:
    0
    Hello! So I made a skript that when you do /stafftools, you get an axe and a barrier and when you right-click the barrier your inventory is cleared. Also, when you place an end portal frame, it cancels the event and sends you a message. I am for some reason getting spammed by errors. If someone could help me I would appreciate it!

    Skript: https://pastebin.com/1M1bivS8

    Errors: https://imgur.com/2YS9kzv
     
  2. Strafbefehl

    Strafbefehl New Member

    Joined:
    Jul 25, 2020
    Messages:
    5
    Likes Received:
    0
    press in line 7 tab

    permission: op

    must be in the same line as the trigger

    Code (Text):
    1. command /staffmode:
    2.     permission: op
    3.     trigger:
     
  3. BadName

    BadName Member

    Joined:
    Oct 23, 2020
    Messages:
    23
    Likes Received:
    0
    this might work

    Code (Text):
    1. on block place:
    2.   if block is end portal frame:
    3.     if player does not have permission "placeendportal":
    4.       cancel action
    5.     if player does have permission "placeendportal":
    6.       stop
    7.  
    8.  
    9. command /staffmode:
    10.   permission: op
    11.   trigger:
    12.     make console execute command "/ci %player%"
    13.     give player 1 wooden axe of mending named "&c&lWand" with lore "&7World Edit Wand :D
    14.     give player 1 barrier named "&4Leave Staff Mode"
    15.  
    16.  
    17. on right click with barrier:
    18.   if name of event-item is "&4Leave Staff Mode":
    19.     if player has permission "op":
    20.       make console execute command "/ci %player%"
    Just so you know, I used 2 spaces instead of tabs.
     
  4. _XxfedexX_

    _XxfedexX_ Member

    Joined:
    Oct 6, 2020
    Messages:
    29
    Likes Received:
    2
    Fixed? If yes, please Mark as Solved!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...