My Skript is receiving many errors

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

Frank King

Member
Dec 31, 2020
1
0
1
24
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
 
press in line 7 tab

permission: op

must be in the same line as the trigger

Code:
command /staffmode:
    permission: op
    trigger:
 
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
this might work

Code:
on block place:
  if block is end portal frame:
    if player does not have permission "placeendportal":
      cancel action
    if player does have permission "placeendportal":
      stop


command /staffmode:
  permission: op
  trigger:
    make console execute command "/ci %player%"
    give player 1 wooden axe of mending named "&c&lWand" with lore "&7World Edit Wand :D
    give player 1 barrier named "&4Leave Staff Mode"


on right click with barrier:
  if name of event-item is "&4Leave Staff Mode":
    if player has permission "op":
      make console execute command "/ci %player%"

Just so you know, I used 2 spaces instead of tabs.
 
Status
Not open for further replies.