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:
Any help is greatly appreciated, Here's a screen shot of the error messages.
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}"