Cant understand this event

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

Lemonboy911

Member
Oct 7, 2019
10
0
0
18
Im making a skript:
Code:
options:
    pre: &7&l| &3&lN&b&lP &7&l|
    p: &7&l| &3&lNight&b&lPrison &7&l|
on sign change:
    line 1 is "VS C"
    set line 1 to "&7&l| &3&lNight&b&lPrison &7&l|"
    set line 2 to "&4&lVAGT SHOP"
    set line 3 to "&cHer kan du købe"
    set line 4 to "&cDit vagt gear! &8(C)"
   
on rightclick on sign:
    line 1 is "&7&l| &3&lNight&b&lPrison &7&l|"
    line 2 is "&4&lVAGT SHOP"
    line 3 is "&cHer kan du købe"
    line 4 is "&cDit vagt gear!"
    if player is holding an air:
        if player has permission "C-Vagt":
            open chest with 3 rows named "{@pre} &cShop" to player
            wait 1 tick
            format slot 2 of player with 16 cooked porkchop named "&cKøb 16 Fleskestegs sandwiches!" with lore "&cPris: &450" to close then run [make player execute command "vsporkchopc"]
            format slot 6 of player with shiny stick named "&cKøb en knockback Pind!" with lore "&cPris: &450" to close then run [make player execute command "vsknockbackc"]
            format slot 10 of player with shiny golden helmet named "&cKøb en Vagt hjelm!" with lore "&cPris: &4200" to close then run [make player execute command "vsironhelmetc"]
            format slot 12 of player with shiny iron chestplate named "&cKøb en vagt brystplade!" with lore "&cPris: &4250" to close then run [make player execute command "vsironchestplatec"]
            format slot 14 of player with shiny iron leggings named "&cKøb nolge Vagt bukser!" with lore "&cPris: &4250" to close then run [make player execute command "vsironleggingsc"]
            format slot 16 of player with shiny iron boots named "&cKøb et par Vagt sko!" with lore "&cPris: &4250" to close then run [make player execute command "vsironbootsc"]
            format slot 20 of player with shiny iron sword named "&cKøb et Vagt sværd!" with lore "&cPris: &4250" to close then run [make player execute command "vsironswordc"]
            format slot 22 of player with 64 arrows named "&cKøb 64 pile!" with lore "&cPris: &4125" to close then run [make player execute command "vsarrowsc"]
            format slot 24 of player with shiny bow named "&cKøb en  Vagt bue!" with lore "&cPris: &4300" to close then run [make player execute command "vsbowc"]
This all worked in an old version of skript, but when i switched to a newer version it started to print the error, when loading the skript:
can't understand this event: 'on sign change' [vs.sk, line 4: on sign change:')
and it also says
can't understand this event: 'on rightclick on sign' [vs.sk, line 11: on rightclick on sign:')


Edit: Im running skript version 2.3.7
 
Im making a skript:
code_language.skript:
options:
    pre: &7&l| &3&lN&b&lP &7&l|
    p: &7&l| &3&lNight&b&lPrison &7&l|
on sign change:
    line 1 is "VS C"
    set line 1 to "&7&l| &3&lNight&b&lPrison &7&l|"
    set line 2 to "&4&lVAGT SHOP"
    set line 3 to "&cHer kan du købe"
    set line 4 to "&cDit vagt gear! &8(C)"
  
on rightclick on sign:
    line 1 is "&7&l| &3&lNight&b&lPrison &7&l|"
    line 2 is "&4&lVAGT SHOP"
    line 3 is "&cHer kan du købe"
    line 4 is "&cDit vagt gear!"
    if player is holding an air:
        if player has permission "C-Vagt":
            open chest with 3 rows named "{@pre} &cShop" to player
            wait 1 tick
            format slot 2 of player with 16 cooked porkchop named "&cKøb 16 Fleskestegs sandwiches!" with lore "&cPris: &450" to close then run [make player execute command "vsporkchopc"]
            format slot 6 of player with shiny stick named "&cKøb en knockback Pind!" with lore "&cPris: &450" to close then run [make player execute command "vsknockbackc"]
            format slot 10 of player with shiny golden helmet named "&cKøb en Vagt hjelm!" with lore "&cPris: &4200" to close then run [make player execute command "vsironhelmetc"]
            format slot 12 of player with shiny iron chestplate named "&cKøb en vagt brystplade!" with lore "&cPris: &4250" to close then run [make player execute command "vsironchestplatec"]
            format slot 14 of player with shiny iron leggings named "&cKøb nolge Vagt bukser!" with lore "&cPris: &4250" to close then run [make player execute command "vsironleggingsc"]
            format slot 16 of player with shiny iron boots named "&cKøb et par Vagt sko!" with lore "&cPris: &4250" to close then run [make player execute command "vsironbootsc"]
            format slot 20 of player with shiny iron sword named "&cKøb et Vagt sværd!" with lore "&cPris: &4250" to close then run [make player execute command "vsironswordc"]
            format slot 22 of player with 64 arrows named "&cKøb 64 pile!" with lore "&cPris: &4125" to close then run [make player execute command "vsarrowsc"]
            format slot 24 of player with shiny bow named "&cKøb en  Vagt bue!" with lore "&cPris: &4300" to close then run [make player execute command "vsbowc"]
This all worked in an old version of skript, but when i switched to a newer version it started to print the error, when loading the skript:
can't understand this event: 'on sign change' [vs.sk, line 4: on sign change:')
and it also says
can't understand this event: 'on rightclick on sign' [vs.sk, line 11: on rightclick on sign:')


Edit: Im running skript version 2.3.7
What spigot version are you using?
 
Status
Not open for further replies.