Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- AdminPermission: Discord.admin #This is the permission for all admin things.#
- BroadcastConfirm: &8[&aDiscord&8] &7A discord event has been broadcasted to the whole server. #This is the message broadcasted if an event has started.#
- BroadcastDescriptionLine1: &c%player% has announced a Discord! #This is the first line of the broadcast message.#
- BroadcastDescriptionLine2: &cEvent! Join with the link below! #This is the second line of the broadcast message.#
- DiscordURL: https://discord.gg/XEgxsQdy #This is your discord URL!#
- DiscordBroadcastPermission: discord.broadcast #This is the permission for discord broadcasting.#
- HeaderAndFooter: &8&m-----------------------------------&f #This is the header and footer for all messages.#
- NoPermission: &8[&aDiscord&8] &7You do not have permission! #This is sent if a player does not have permission for something.#
- SuccessfulSend: &8[&aDiscord&8] &7You have successfully sent our discord to a friend! #This is sent if a player recommends your Discord to a friend!#
- #---------------------------#
- # NOTICE! #
- # ^^^^ ^^^^ #
- # IF YOU DO NOT KNOW WHAT #
- # YOU ARE DOING THEN DO NOT #
- # EDIT THE SKRIPT BEYOND #
- # THIS POINT! #
- #---------------------------#
- command /discord [<player>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "{@HeaderAndFooter}"
- send ""
- send " &cCheck out our Discord here!"
- send " &cLink: &7{@DiscordURL}"
- send ""
- send " &cWant to refer our Discord to a friend?"
- send " &cDo &7/discord <player> <reason>&c to refer it!"
- send "{@HeaderAndFooter}"
- stop
- if arg 2 is set:
- send "{@SuccessfulSend}" to player
- send "{@HeaderAndFooter}" to arg-1
- send "" to arg-1
- send " &cYou have been referred to our discord" to arg-1
- send " &cBy a player!" to arg-1
- send " " to arg-1
- send " &cReason:" to arg-1
- send " &7%arg 2%" to arg-1
- send " " to arg-1
- send " &cLink: &7{@DiscordURL}" to arg-1
- send "" to arg-1
- send "{@HeaderAndFooter}" to arg-1
- stop
- if arg 1 is "broadcast" or "bc":
- if player has permission "{@DiscordBroadcastPermission}":
- send "{@BroadcastConfirm}" to player
- broadcast "{@HeaderAndFooter}"
- broadcast ""
- broadcast " {@BroadcastDescriptionLine1}"
- broadcast " {@BroadcastDescriptionLine2}"
- broadcast " "
- broadcast " &cLink: &7{@DiscordURL}"
- broadcast ""
- broadcast "{@HeaderAndFooter}"
- else:
- send "{@NoPermission}" to player
- if arg 1 is "join":
- send "&8[&aDiscord&8] &7To join our Discord go here: &c{@DiscordURL}&7."
- on load:
- if {ServerMedia::running} is true:
- message "&8[&aDiscord&8] &7Disabling the script because the script known as ServerMedia is running on your server. Please either remove the /discord command from that script by deleting lines 29 through 34 or remove this script." to console
- execute console command "sk disable %script%"
- set {version} to "1.8"
- message "&8[&aDiscord&8] &7Successfully loaded &aDiscord &8v&a%{version}%&7." to console
- on unload:
- message "&8[&aDiscord&8] &7Successfully unloaded &aDiscord &8v&a%{version}%&7. Goodbye!" to console
Advertisement
Add Comment
Please, Sign In to add comment