ArtzifyHD

discord

Jul 29th, 2017
1,030
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. options:
  2. AdminPermission: Discord.admin #This is the permission for all admin things.#
  3. BroadcastConfirm: &8[&aDiscord&8] &7A discord event has been broadcasted to the whole server. #This is the message broadcasted if an event has started.#
  4. BroadcastDescriptionLine1: &c%player% has announced a Discord! #This is the first line of the broadcast message.#
  5. BroadcastDescriptionLine2: &cEvent! Join with the link below! #This is the second line of the broadcast message.#
  6. DiscordURL: https://discord.gg/XEgxsQdy #This is your discord URL!#
  7. DiscordBroadcastPermission: discord.broadcast #This is the permission for discord broadcasting.#
  8. HeaderAndFooter: &8&m-----------------------------------&f #This is the header and footer for all messages.#
  9. NoPermission: &8[&aDiscord&8] &7You do not have permission! #This is sent if a player does not have permission for something.#
  10. 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!#
  11.  
  12. #---------------------------#
  13. # NOTICE! #
  14. # ^^^^ ^^^^ #
  15. # IF YOU DO NOT KNOW WHAT #
  16. # YOU ARE DOING THEN DO NOT #
  17. # EDIT THE SKRIPT BEYOND #
  18. # THIS POINT! #
  19. #---------------------------#
  20.  
  21. command /discord [<player>] [<text>]:
  22. trigger:
  23. if arg 1 is not set:
  24. send "{@HeaderAndFooter}"
  25. send ""
  26. send " &cCheck out our Discord here!"
  27. send " &cLink: &7{@DiscordURL}"
  28. send ""
  29. send " &cWant to refer our Discord to a friend?"
  30. send " &cDo &7/discord <player> <reason>&c to refer it!"
  31. send "{@HeaderAndFooter}"
  32. stop
  33. if arg 2 is set:
  34. send "{@SuccessfulSend}" to player
  35. send "{@HeaderAndFooter}" to arg-1
  36. send "" to arg-1
  37. send " &cYou have been referred to our discord" to arg-1
  38. send " &cBy a player!" to arg-1
  39. send " " to arg-1
  40. send " &cReason:" to arg-1
  41. send " &7%arg 2%" to arg-1
  42. send " " to arg-1
  43. send " &cLink: &7{@DiscordURL}" to arg-1
  44. send "" to arg-1
  45. send "{@HeaderAndFooter}" to arg-1
  46. stop
  47. if arg 1 is "broadcast" or "bc":
  48. if player has permission "{@DiscordBroadcastPermission}":
  49. send "{@BroadcastConfirm}" to player
  50. broadcast "{@HeaderAndFooter}"
  51. broadcast ""
  52. broadcast " {@BroadcastDescriptionLine1}"
  53. broadcast " {@BroadcastDescriptionLine2}"
  54. broadcast " "
  55. broadcast " &cLink: &7{@DiscordURL}"
  56. broadcast ""
  57. broadcast "{@HeaderAndFooter}"
  58. else:
  59. send "{@NoPermission}" to player
  60. if arg 1 is "join":
  61. send "&8[&aDiscord&8] &7To join our Discord go here: &c{@DiscordURL}&7."
  62. on load:
  63. if {ServerMedia::running} is true:
  64. 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
  65. execute console command "sk disable %script%"
  66. set {version} to "1.8"
  67. message "&8[&aDiscord&8] &7Successfully loaded &aDiscord &8v&a%{version}%&7." to console
  68. on unload:
  69. message "&8[&aDiscord&8] &7Successfully unloaded &aDiscord &8v&a%{version}%&7. Goodbye!" to console
Advertisement
Add Comment
Please, Sign In to add comment