Please Help Having issues with making plugin

  • 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.
Jan 22, 2018
25
0
0
24
So im making an event plugin and everytime i try to reload it keeps coming up with errors i dont know what to do ive looked at the code and it looks right but i keep getting errors here is my code


code_language.skript:
command /event:
    permission: Event.Admin
    permission message: &8&l(&c&l!&8&l) &c&lPermission Denied &8&l(&c&l!&8&l)
    trigger:
        open chest with 1 row named "&5&lEvent Menu" to player
        wait 3 tick
        format slot 0 of player with grass named "&3&lHide n Seek" to close then run [make player execute command "/bc &8&l(&c&l!&8&l) &c&lEVENT &8&l(&c&l!&8&l) HIDE N SEEK DO /eventjoin TO JOIN THE FUN"]
        format slot 1 of player with button named "&3&lFind The Button" to close then run [make player execute command "/bc &8&l(&c&l!&8&l) &c&lEVENT &8&l(&c&l!&8&l) FIND THE BUTTON DO /eventjoin TO JOIN THE FUN"]
        format slot 2 of player with bow named "&3&lCops n Robbers" to close then run [make player execute command "/bc &8&l(&c&l!&8&l) &c&lEVENT &8&l(&c&l!&8&l) COPS N ROBBERS DO /eventjoin TO JOIN THE FUN"]
        format slot 3 of player with iron bars named "&3&lPrison Escape" to close then run [make player execute command "/bc &8&l(&c&l!&8&l) &c&lEVENT &8&l(&c&l!&8&l) COPS N ROBBERS DO /eventjoin TO JOIN THE FUN"]
    
command /customevent [<text>]
    permission: Event.Use
    permission message: &8&l(&c&l!&8&l) &c&lPermission Denied &8&l(&c&l!&8&l)
    trigger:
        if arg-1 is not set
            send "&cUsage: /customevent (event name)"
        if arg-1 is set
            broadcast "&8&l(&c&l!&8&l) &c&lEVENT &8&l(&c&l!&8&l) %arg-1% DO /eventjoin TO JOIN THE FUN"
    
command /eventjoin:
    trigger:
        make player execute command "/warp eventspawn"
        wait 5000 tick
        send "&3&lWelcome to the event lobby please wait for further instructions"
        
command /eventkick [<player>] [<text>]:
    permission: Event.Admin
    permission message: &8&l(&c&l!&8&l) &c&lPermission Denied &8&l(&c&l!&8&l)
    trigger:
        if arg-1 is not set
            send "&cUsage: /eventkick <player> <reason>"
        if arg-1 is set
            execute console command "/warp Spawn %arg-1%"
            wait 3 tick
            send "&cPlayer Kicked From Event"
            wait 3 tick
            send "&cKicked From Event! You were kicked by %player% for %arg-2%" to arg 1



here are the errors
code_language.skript:
[15:27:05 INFO]: [Skript] Reloading events.sk...
[15:27:05 ERROR]: indentation error: expected 0 tabs, but found 1 tab (events.sk
, line 13: permission: Event.Use')
[15:27:05 ERROR]: indentation error: expected 0 tabs, but found 1 tab (events.sk
, line 14: permission message: &8&l(&c&l!&8&l) &c&lPermission Denied &8&l(&c&l!&
8&l)')
[15:27:05 ERROR]: indentation error: expected 0 tabs, but found 1 tab (events.sk
, line 15: trigger:')
[15:27:05 ERROR]: indentation error: expected 0 tabs, but found 2 tabs (events.s
k, line 16: if arg-1 is not set')
[15:27:05 ERROR]: indentation error: expected 0 tabs, but found 3 tabs (events.s
k, line 17: send "&cUsage: /customevent (event name)"')
[15:27:05 ERROR]: indentation error: expected 0 tabs, but found 2 tabs (events.s
k, line 18: if arg-1 is set')
[15:27:05 ERROR]: indentation error: expected 0 tabs, but found 3 tabs (events.s
k, line 19: broadcast "&8&l(&c&l!&8&l) &c&lEVENT &8&l(&c&l!&8&l) %arg-1% DO /eve
ntjoin TO JOIN THE FUN"')
[15:27:05 ERROR]: indentation error: expected 2 tabs, but found 3 tabs (events.s
k, line 32: send "&cUsage: /eventkick <player> <reason>"')
[15:27:05 ERROR]: indentation error: expected 2 tabs, but found 3 tabs (events.s
k, line 34: execute console command "/warp Spawn %arg-1%"')
[15:27:05 ERROR]: indentation error: expected 2 tabs, but found 3 tabs (events.s
k, line 35: wait 3 tick')
[15:27:05 ERROR]: indentation error: expected 2 tabs, but found 3 tabs (events.s
k, line 36: send "&cPlayer Kicked From Event"')
[15:27:05 ERROR]: indentation error: expected 2 tabs, but found 3 tabs (events.s
k, line 37: wait 3 tick')
[15:27:05 ERROR]: indentation error: expected 2 tabs, but found 3 tabs (events.s
k, line 38: send "&cKicked From Event! You were kicked by %player% for %arg-2%"
to arg 1')
[15:27:05 ERROR]: invalid line - all code has to be put into triggers (events.sk
, line 12: command /customevent [<text>]')
[15:27:05 ERROR]: 'if' is not a type (events.sk, line 31: if arg-1 is not set')
[15:27:05 ERROR]: 'if' is not a type (events.sk, line 33: if arg-1 is set')
[15:27:05 INFO]: [Skript] Encountered 16 errors while reloading events.sk!

this error has been giving me a hard time please help
 
you forgot a colon after "command /customevent [<text>]"...it's throwing all your following indentation off ^^;;
 
ensure that you've saved the corrected version in your config and that you've reloaded the skript.
[doublepost=1516657115,1516657051][/doublepost]The errors are telling you precisely what is wrong. The configuration section is empty because you left out the colon from the command. all lines below that are therefore not expecting indents, but are finding them
 
Status
Not open for further replies.