ArtzifyHD

FrostChat

Aug 12th, 2017
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.93 KB | None | 0 0
  1. options:
  2. prefix: &7[&bFrostCHAT&7]
  3. version: &41.2.2 Test-Build-InDev &7( &9• &4Possibly Unstable Build &9• &7)
  4. AmountOfMaxWarns: 3
  5. AdminCmdPerm: frostchat.admin
  6. BypassPermission: antiadv.bypass
  7. CancelMessage: true
  8. MainCmdAliases: /frostaa /aa /antiad
  9. DontAdvertiseHereMsg: &fPlease do not advertise here. All online staff have been notified.
  10. KickOnWarnLimitReach: true
  11. Over3WarnsCmd1: ban %arg 1% Advertising more than 3 times.
  12. Over3WarnsCmd2: broadcast %arg 1% has just been banned by FrostCHATANTI ADVERTISMENT for advertising more than 3 times!
  13. StaffWarnMsg: {@prefix} &7&o%player%&f is advertising! %message%
  14. 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"
  15. WarnThePlayer: true
  16. StaffWarnMsg: true
  17. on load:
  18. set {chat} to true
  19. on chat:
  20. if message contains {@list}:
  21. if player doesn't have permission "{@BypassPermission}":
  22. if {@WarnThePlayer} is true:
  23. send "{@prefix} {@DontAdvertiseHereMsg}"
  24. else:
  25. add 1 to {frostantiadv.advs.%player%}
  26. loop all players:
  27. if loop-player has permission "{@AdminCmdPerm}":
  28. if {@StaffWarnMsg} is true:
  29. send "{@prefix} {@StaffWarnMsg}" to loop-player
  30.  
  31. command /frostaa [<offlineplayer>] [<text>] [<text>]:
  32. aliases: {@MainCmdAliases}
  33. permission: {@AdminCmdPerm}
  34. trigger:
  35. if arg 1 is not set:
  36. send "&8&m--------------------------"
  37. send " {@prefix} &4&lCommands"
  38. send "&f"
  39. send "&8- &7/FrostChat Help"
  40. send "&8- &7/FrostChat Version"
  41. send "&8- &7/FrostChat Reload"
  42. send "&8- &7/FrostChat Confirm"
  43. send "&8- &7/FrostChat Clear"
  44. send "&8- &7/FrostChat Mute"
  45. send "&8- &7/FrostChat Unmute"
  46. send "&8- &7More commands Coming Soon!"
  47. send "&7"
  48. send "&8&m--------------------------"
  49. stop
  50. if arg 1 is "Stats" or "Warns":
  51. if arg 2 is set:
  52. send "&8&m--------------------------"
  53. send "&lStats:"
  54. send "&7"
  55. send "&eUsername &8- &7%arg 2%"
  56. set {_a} to "%{frostantiadv.advs.%arg 2%}%"
  57. if {_a} contains "<none>":
  58. set {_a} to 0
  59. send "&eWarns &8- &7%{_a}%"
  60. send "&7"
  61. send "&8&m--------------------------"
  62. stop
  63. else:
  64. send "{@prefix} &ePlease enter a valid username."
  65. else:
  66. if arg 1 is set:
  67. if arg 2 is not set:
  68. send "&8&m--------------------------"
  69. send " &4Information:"
  70. send "&7"
  71. send "&fUsername: &7&o%arg 1%"
  72. send "&fWarnings: &7&o%{antiadv.advs.%arg 1%}%"
  73. send "&fPlayer UUID: &7&o%uuid of player%"
  74. send "&fMax warns before Action: &7&o{@AmountOfMaxWarns}"
  75. send "&7"
  76. send "&8&m--------------------------"
  77. stop
  78. else:
  79. if arg 1 is "reset":
  80. if arg 2 is set:
  81. set {frostantiadv.advs.%arg 2%} to 0
  82. send "{@prefix} &6%arg 2%'s &earguments have been reset."
  83. else:
  84. send "{@prefix} &cPlease specify a player."
  85. if arg 2 is "set":
  86. set {frostantiadv.advs.%arg 1%} to arg 2
  87. send "{@prefix} &7&o%arg 1%'s &fadvertisement warnings have been set to %arg 2%."
  88. stop
  89. if arg 2 is "act" or "action":
  90. if arg 3 is set:
  91. execute player command "%arg 3%"
  92. if arg 3 is not set:
  93. 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%."
  94. if {frostantiadv.advs.%arg 1%} is greater than {@AmountOfMaxWarns}:
  95. execute console command "{@Over3WarnsCmd1}"
  96. execute console command "{@Over3WarnsCmd2}"
  97. if {@KickOnWarnLimitReach} is true:
  98. 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."
  99. command /frostaar [<text>]:
  100. aliases: /aar, /antiar, /chatreset, /antiadvertisement
  101. permission: frostchat.reset
  102. trigger:
  103. if arg-1 is not set:
  104. send "{@prefix} &fAre you sure? If so add 'confirm' after the command you just typed."
  105. if arg-1 is "confirm":
  106. set {frostantiadv.advs.%all players%} to 0
  107. send "{@prefix} &fAdvertisement warnings and kicks have been reset for all players."
  108. stop
  109. else:
  110. send "{@prefix} &fArgument not found."
  111. command /frostchat [<text>]:
  112. aliases: /fchat, /frostc
  113. trigger:
  114. if arg 1 is "help":
  115. send "{@prefix} &6&lCommands&8:"
  116. send "&8- &7/frostchat reload"
  117. send "&8- &7/frostchat help"
  118. send "&8- &7/frostchat version"
  119. if arg 1 is not set:
  120. send "{@prefix} &6&lHelp&8:"
  121. send "&8- &7FrostChat Skript By &aFrostedWeFall"
  122. send "&8- &7Version&8: &e{@version}"
  123. send "&8- &7Youtube&8: &dArtzifyHD"
  124. if arg 1 is "version":
  125. send "&8- &7Version&8: &a{@version}"
  126. send "&8- &7FrostChat Skript By &aFrostedWeFall"
  127. send "&8- &7https://www.spigotmc.org/resources/1-12x-frostchat-skript.44229/"
  128. command /chat [<text>]:
  129. permission: frostchat.chat
  130. permission message: &cYou don't have permission!
  131. trigger:
  132. if arg 1 is "help":
  133. send "{@prefix} &b&lCommands&8:"
  134. send "&8- &7/chat clear"
  135. send "&8- &7/chat mute"
  136. send "&8- &7/chat unmute"
  137. if arg 1 is "clear":
  138. loop 300 times:
  139. broadcast ""
  140. broadcast ""
  141. broadcast "{@prefix} &2Chat has been cleared by &a%player%"
  142. if arg 1 is "mute":
  143. set {chat} to false
  144. broadcast "{@prefix} &cChat has been disabled by an %player%&8."
  145. if arg 1 is "unmute":
  146. set {chat} to true
  147. broadcast "{@prefix} &aChat has been enabled by %player%&8."
  148. on chat:
  149. if {chat} is false:
  150. if player has permission "frostchat.chat":
  151. broadcast "&9%player's displayname%&8: &f%message%"
  152. else:
  153. cancel event
  154. send "{@prefix} &cChat has been disabled by an administrator&8!"
  155. command /frostchat reload:
  156. permission: frostchat.admin
  157. permission message: {@nopermission}
  158. trigger:
  159. send "&cPlease confirm by typing /frostchat confirm"
  160. 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!"
  161. command /frostchat confirm:
  162. permission: frostchat.admin
  163. permission message: {@nopermission}
  164. trigger:
  165. 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."
Advertisement
Add Comment
Please, Sign In to add comment