ArtzifyHD

FrostChat

Aug 12th, 2017
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.23 KB | None | 0 0
  1. #This Skript Hooks In Well With FrostEssentials, You Should Think About Downloading It Here >> ( Coming Soon )#
  2. options:
  3. prefix: &7[&bFrostCHAT&7]
  4. version: &41.2.1 Test-Build-InDev &7( &9• &4Possibly Unstable Build &9• &7)
  5. AmountOfMaxWarns: 3
  6. AdminCmdPerm: frostchat.admin
  7. BypassPermission: antiadv.bypass
  8. CancelMessage: true
  9. MainCmdAliases: /frostaa /aa /antiad
  10. DontAdvertiseHereMsg: &fPlease do not advertise here. All online staff have been notified.
  11. KickOnWarnLimitReach: true
  12. Over3WarnsCmd1: ban %arg 1% Advertising more than 3 times.
  13. Over3WarnsCmd2: broadcast %arg 1% has just been banned by FrostCHATANTI ADVERTISMENT for advertising more than 3 times!
  14. StaffWarnMsg: {@prefix} &7&o%player%&f is advertising! %message%
  15. list: ".com" or ".net" or ".co" or ".us" or ".uk" or ".ws" or ".tk" or ".org" or ".to" or "dot." or "dot," or "(dot)" or ".pw" or "dot" or ".it" or ".tech" or ".edu" or "DOT" or " , " or ".de" or ".tl" or ".nl" or ".be" or ".me" or ".info" or ".ly" or ".onion" or ".bit" or ".pl" or ".gl" or ".tv" or ".gs" or ".myserver" or ".club" or ".space" or ".design" or ".rent" or ".bid" or ".trade" or ".webcam" or ".press" or ".io" or ".ca" or ".college" or ".host" or ".es" or ".yoga" or ".financial" or ".flights" or ".guitars" or ".xyz" or ".dj" or ".is" or ".hub" or ".server" or ".webcam" or ".ninja" or ".financial" or ".ca" or ".eu" or ".esy"
  16. WarnThePlayer: true
  17. StaffWarnMsg: true
  18. on chat:
  19. if message contains {@list}:
  20. if player doesn't have permission "{@BypassPermission}":
  21. if {@WarnThePlayer} is true:
  22. send "{@prefix} {@DontAdvertiseHereMsg}"
  23. else:
  24. add 1 to {frostantiadv.advs.%player%}
  25. loop all players:
  26. if loop-player has permission "{@AdminCmdPerm}":
  27. if {@StaffWarnMsg} is true:
  28. send "{@prefix} {@StaffWarnMsg}" to loop-player
  29.  
  30. command /frostaa [<offlineplayer>] [<text>] [<text>]:
  31. aliases: {@MainCmdAliases}
  32. permission: {@AdminCmdPerm}
  33. trigger:
  34. if arg 1 is not set:
  35. send "&7&m--------------------------"
  36. send " {@prefix} &b&lCommands&8:"
  37. send "&f"
  38. send "&8- &7/FrostAA Help"
  39. send "&8- &7/FrostAA:"
  40. send "&8- &7/FrostAAR Reset"
  41. send "&8- &7/FrostAA Set"
  42. send "&8- &7/FrostChat Help"
  43. send "&8- &7/FrostChat Version"
  44. send "&8- &7/FrostChat Reload"
  45. send "&8- &7/FrostChat Confirm"
  46. send "&8- &7/FrostChat Clear"
  47. send "&8- &7/FrostChat Mute"
  48. send "&8- &7/FrostChat Unmute"
  49. send "&8- &7More commands Coming Soon!"
  50. send "&7"
  51. send "&7&m--------------------------"
  52. stop
  53. if arg 1 is "Stats" or "Warns":
  54. if arg 2 is set:
  55. send "&8&m--------------------------"
  56. send "&lStats:"
  57. send "&7"
  58. send "&eUsername &8- &7%arg 2%"
  59. set {_a} to "%{frostantiadv.advs.%arg 2%}%"
  60. if {_a} contains "<none>":
  61. set {_a} to 0
  62. send "&eWarns &8- &7%{_a}%"
  63. send "&7"
  64. send "&8&m--------------------------"
  65. stop
  66. else:
  67. send "{@prefix} &ePlease enter a valid username."
  68. else:
  69. if arg 1 is set:
  70. if arg 2 is not set:
  71. send "&8&m--------------------------"
  72. send " &4Information:"
  73. send "&7"
  74. send "&fUsername: &7&o%arg 1%"
  75. send "&fWarnings: &7&o%{antiadv.advs.%arg 1%}%"
  76. send "&fPlayer UUID: &7&o%uuid of player%"
  77. send "&fMax warns before Action: &7&o{@AmountOfMaxWarns}"
  78. send "&7"
  79. send "&8&m--------------------------"
  80. stop
  81. else:
  82. if arg 1 is "reset":
  83. if arg 2 is set:
  84. set {frostantiadv.advs.%arg 2%} to 0
  85. send "{@prefix} &6%arg 2%'s &earguments have been reset."
  86. else:
  87. send "{@prefix} &cPlease specify a player."
  88. if arg 2 is "set":
  89. set {frostantiadv.advs.%arg 1%} to arg 2
  90. send "{@prefix} &7&o%arg 1%'s &fadvertisement warnings have been set to %arg 2%."
  91. stop
  92. if arg 2 is "act" or "action":
  93. if arg 3 is set:
  94. execute player command "%arg 3%"
  95. if arg 3 is not set:
  96. send "{@prefix} &fPlease add a command after the players name to execute an action on them. To have it act on the player, use %player%."
  97. if {frostantiadv.advs.%arg 1%} is greater than {@AmountOfMaxWarns}:
  98. execute console command "{@Over3WarnsCmd1}"
  99. execute console command "{@Over3WarnsCmd2}"
  100. if {@KickOnWarnLimitReach} is true:
  101. kick the player due to "{@prefix}%new line%&fYou have been warned &7{@AmountOfMaxWarns} &ftimes for advertising%new line%&fand have been kicked.%new line%&fPlease rejoin soon."
  102. command /frostaar [<text>]:
  103. aliases: /aar, /antiar, /chatreset, /antiadvertisement
  104. permission: frostchat.reset
  105. trigger:
  106. if arg-1 is not set:
  107. send "{@prefix} &fAre you sure? If so add 'confirm' after the command you just typed."
  108. if arg-1 is "confirm":
  109. set {frostantiadv.advs.%all players%} to 0
  110. send "{@prefix} &fAdvertisement warnings and kicks have been reset for all players."
  111. stop
  112. else:
  113. send "{@prefix} &fArgument not found."
  114. command /frostchat version:
  115. trigger:
  116. broadcast "&7This server is running FrostChat version {version}" to player
  117. broadcast "&7Detecting version. Please be patient, this may take a while." to player
  118. wait 3 seconds
  119. broadcast "&7Running package: &9{@version}"
  120. broadcast "&7Download Or Report An Issue Here: &9https://www.spigotmc.org/resources/1-12x-frostchat-skript.44229/"
  121.  
  122. wait 30 seconds
  123.  
  124. broadcast "&7Hello! Thanks for installing the FrostChat plugin!"
  125.  
  126. broadcast "&7FrostChat created by FrostedWeFall is designed to be an optional alternative to many other Chat Control Skripts!"
  127. wait 5 seconds
  128. broadcast "&7If you have any bugs or any issues you want to report?"
  129.  
  130. broadcast "&7Click on the link: &bhttps://www.spigotmc.org/resources/1-12x-frostchat-skript.44229/"
  131.  
  132. broadcast "&7Enjoy the plugin"
  133.  
  134.  
  135. command /frostchat reload:
  136. permission: frostchat.admin
  137. permission message: {@nopermission}
  138. trigger:
  139. send "&cPlease confirm by typing /frostchat confirm"
  140. broadcast "&cPlease note that usage of this command can possibly crash Skript, FrostChat, or your server in general as it has not been fully tested!"
  141.  
  142. command /frostchat confirm:
  143. permission: frostchat.admin
  144. permission message: {@nopermission}
  145. trigger:
  146. broadcast "&7&o[Reloading]: &cPlease note that usage of this command can possibly crash Skript, FrostChat, or your server in general as it has not been fully tested. This may be in error of FrostChat {@version} or Skript or an issue with your server version or settings.. Please do not contact the developer of FrostChat ( FrostedWeFall ) until it is confirmed that it was at fault of FrostChat."
  147. execute console command "/sk reload FrostChat.jar"
  148.  
  149. command /frostchat info:
  150. trigger:
  151. send "&7FrostChat Version: &9{@version}"
  152. send "&7A basic alternative to Chat Control made inside of Skript!"
  153. send "&7Developer / Creator: &9FrostedWeFall"
  154.  
  155. command /frostchat [<arg-1>]
  156. permission message: &cYou don't have permission!
  157. trigger:
  158. if arg 1 is "clear":
  159. loop 300 times:
  160. broadcast ""
  161. broadcast ""
  162. broadcast "{@prefix} &2Chat has been cleared by &a%player%"
  163. if arg 1 is "mute":
  164. set {chat} to false
  165. broadcast "{@prefix} &cChat has been disabled by %player%&8."
  166. if arg 1 is "unmute":
  167. set {chat} to true
  168. broadcast "{@prefix} &aChat has been enabled by %player%&8."
Advertisement
Add Comment
Please, Sign In to add comment