ArtzifyHD

FrostChat Skript V3

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