New Skript - Wont work

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

JoshA20

Member
Apr 21, 2019
1
0
0
23
Hi there, I'm pretty new to Skript. This is my first attempt at something this big. It's a Skript so I can see my staff's staff chat messages from discord. It also allows me to be tagged when I get a report. What am I doing wrong here?

Code:
Code:
options:

    AnnouncementChannel: 568592739650895892

    BotName: TheJadeTV

    BotToken: [Redacted, Discord bot Token]

    Channel: 569586398919917575

    CheckForUpdates: true

    DiscordLink: [Redacted, Discord link]

    MessageFormat: &9[DISCORD] &f%event-user% &7» &f%event-string%

    NoPermission: &7You do not have sufficient permission to use this command.

    Prefix: &7[&9DISCORD&7]

    StaffChatChannel: 569586398919917575

    UpdateCheckingIntervals: 5

    WebsiteURL: [Redacted, Twitch link]



command /report <text>:

    aliases: /rep

    permission: default.permission

    trigger:

        send "&aYour report will be reviewed by staff shortly, thank you for  helping our community."

        loop all players:

            if loop-player has permission "moderation.permission":

                send "[&4REPORT&7] &7| &f%player's display name%&7: &c%arg 1%" to loop-player

        send "[@here] [REPORT] **%player%**: %arg 1%" to channel with id "{@StaffChatChannel}" with "{@BotName}"  



command /panic:

    permission: panic.permission

    trigger:

        execute console command "/spawn %player%"

        send "**%player%** used command /panic" to channel with id "{@StaffChatChannel}" with "{@BotName}"

       

command /staffchat <text>:

    aliases: /sc, /a

    permission: moderation.permission

    trigger:

        loop all players:

            if loop-player has permission "moderation.permission":

                send "&7[&f&k!&4SC&f&k!&7] &7| &f%player's display name%&7: &f%arg 1%" to loop-player      

        send "**[SC]** | %player%: %arg 1%" to channel with id "{@StaffChatChannel}" with "{@BotName}"



on load:

    login to "{@BotToken}" with name "{@BotName}"
Any help is greatly appreciated, Here's a screen shot of the error messages.
upload_2019-4-21_19-33-2.png
 
Hi there, I'm pretty new to Skript. This is my first attempt at something this big. It's a Skript so I can see my staff's staff chat messages from discord. It also allows me to be tagged when I get a report. What am I doing wrong here?

Code:
Code:
options:

    AnnouncementChannel: 568592739650895892

    BotName: TheJadeTV

    BotToken: [Redacted, Discord bot Token]

    Channel: 569586398919917575

    CheckForUpdates: true

    DiscordLink: [Redacted, Discord link]

    MessageFormat: &9[DISCORD] &f%event-user% &7» &f%event-string%

    NoPermission: &7You do not have sufficient permission to use this command.

    Prefix: &7[&9DISCORD&7]

    StaffChatChannel: 569586398919917575

    UpdateCheckingIntervals: 5

    WebsiteURL: [Redacted, Twitch link]



command /report <text>:

    aliases: /rep

    permission: default.permission

    trigger:

        send "&aYour report will be reviewed by staff shortly, thank you for  helping our community."

        loop all players:

            if loop-player has permission "moderation.permission":

                send "[&4REPORT&7] &7| &f%player's display name%&7: &c%arg 1%" to loop-player

        send "[@here] [REPORT] **%player%**: %arg 1%" to channel with id "{@StaffChatChannel}" with "{@BotName}" 



command /panic:

    permission: panic.permission

    trigger:

        execute console command "/spawn %player%"

        send "**%player%** used command /panic" to channel with id "{@StaffChatChannel}" with "{@BotName}"

      

command /staffchat <text>:

    aliases: /sc, /a

    permission: moderation.permission

    trigger:

        loop all players:

            if loop-player has permission "moderation.permission":

                send "&7[&f&k!&4SC&f&k!&7] &7| &f%player's display name%&7: &f%arg 1%" to loop-player     

        send "**[SC]** | %player%: %arg 1%" to channel with id "{@StaffChatChannel}" with "{@BotName}"



on load:

    login to "{@BotToken}" with name "{@BotName}"
Any help is greatly appreciated, Here's a screen shot of the error messages.
View attachment 3319
What version of skript and spigot do you use?
 
Status
Not open for further replies.