1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

New Skript - Wont work

Discussion in 'Skript' started by JoshA20, Apr 21, 2019.

Thread Status:
Not open for further replies.
  1. JoshA20

    JoshA20 Member

    Joined:
    Apr 21, 2019
    Messages:
    1
    Likes Received:
    0
    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 (Text):
    1. options:
    2.  
    3.     AnnouncementChannel: 568592739650895892
    4.  
    5.     BotName: TheJadeTV
    6.  
    7.     BotToken: [Redacted, Discord bot Token]
    8.  
    9.     Channel: 569586398919917575
    10.  
    11.     CheckForUpdates: true
    12.  
    13.     DiscordLink: [Redacted, Discord link]
    14.  
    15.     MessageFormat: &9[DISCORD] &f%event-user% &7» &f%event-string%
    16.  
    17.     NoPermission: &7You do not have sufficient permission to use this command.
    18.  
    19.     Prefix: &7[&9DISCORD&7]
    20.  
    21.     StaffChatChannel: 569586398919917575
    22.  
    23.     UpdateCheckingIntervals: 5
    24.  
    25.     WebsiteURL: [Redacted, Twitch link]
    26.  
    27.  
    28.  
    29. command /report <text>:
    30.  
    31.     aliases: /rep
    32.  
    33.     permission: default.permission
    34.  
    35.     trigger:
    36.  
    37.         send "&aYour report will be reviewed by staff shortly, thank you for  helping our community."
    38.  
    39.         loop all players:
    40.  
    41.             if loop-player has permission "moderation.permission":
    42.  
    43.                 send "[&4REPORT&7] &7| &f%player's display name%&7: &c%arg 1%" to loop-player
    44.  
    45.         send "[@here] [REPORT] **%player%**: %arg 1%" to channel with id "{@StaffChatChannel}" with "{@BotName}"  
    46.  
    47.  
    48.  
    49. command /panic:
    50.  
    51.     permission: panic.permission
    52.  
    53.     trigger:
    54.  
    55.         execute console command "/spawn %player%"
    56.  
    57.         send "**%player%** used command /panic" to channel with id "{@StaffChatChannel}" with "{@BotName}"
    58.  
    59.        
    60.  
    61. command /staffchat <text>:
    62.  
    63.     aliases: /sc, /a
    64.  
    65.     permission: moderation.permission
    66.  
    67.     trigger:
    68.  
    69.         loop all players:
    70.  
    71.             if loop-player has permission "moderation.permission":
    72.  
    73.                 send "&7[&f&k!&4SC&f&k!&7] &7| &f%player's display name%&7: &f%arg 1%" to loop-player      
    74.  
    75.         send "**[SC]** | %player%: %arg 1%" to channel with id "{@StaffChatChannel}" with "{@BotName}"
    76.  
    77.  
    78.  
    79. on load:
    80.  
    81.     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
     
  2. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    608
    Likes Received:
    24
    What version of skript and spigot do you use?
     
Thread Status:
Not open for further replies.
Loading...