Advertisement
Yando

Untitled

Feb 28th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.62 KB | None | 0 0
  1. # Changelog #
  2.  
  3. # - Complete Rebrand
  4. # - Fixed Experimental Anti Ad ( Still in testing phase )
  5. # - Actually added the prefix variable to the start of some messages! ( DUH )
  6. # - The new permission node is FrostChat.<perm> instead of ChatCore.<perm>
  7. # - Added an OnLoadMessage function and in config
  8. # - Converted {@ReportDelayInt} into {@ReportDelayNew}
  9. # - Removed the Domain Count - Cause its broken smh
  10.  
  11. # FrostChat 3.1.0 is finally here #
  12. # Please have a read through all of the configuration section. This Skript is extremely customizable.
  13. # Made some changes to the config and updated it ( Now V 1.3 )
  14.  
  15. options:
  16.  
  17. # ---------------------------------------------- Start of Configuration ---------------------------------------------- #
  18. Version: 3.1.0
  19. ConfigVersion: 1.3
  20. # Don't edit this or I will jump through the screen and bite you! #
  21.  
  22. Prefix: &7[&bServerName&7] &b
  23. # This will be displayed as the prefix to most things in this Skript. This is the first thing you should edit / configure.
  24.  
  25. NoPermissionMessage: &7Sorry &7, You can't execute this command as you do not have the required permissions!
  26. # This is the default "No permission" message, edit this to whatever you want!
  27.  
  28. SkriptName: FrostChat
  29. # Make sure to enter the same name you saved your Skript as! #
  30.  
  31. AntiHacksuation: "hack", "hax", "hacker", "cheat", "hac" or "hacks"
  32. # If you think any more words should be added to the Anti Hacksuation list feel free to add them.
  33.  
  34. AntiSwear: "bitch", "cunt", "dick", "penis", "fuck", "f u", "fuck off" or "motherfucker"
  35. # If you think any more words should be added or want to add another world to the list feel free to add it following the format!
  36.  
  37. AntiAdvertisment: ".com", ".net", ".de", ".me", ".eu", "eu.", "us.", ".gg" or ".nu"
  38. # You may disable this by scrolling down to line 90 - 94 and inserting '#' at the beginning of each line.
  39.  
  40. DiscordLink: discord.me/yourlink
  41. # Type in your discord link above so players know where to report a potential hacker.
  42.  
  43. ChatFormat: &9%player's displayname%&8: &f%message% # Default Chat Format #
  44. # Please type your exact essentials chat format however replacing {DISPLAYNAME} with %player's displayname% and {MESSAGE} with %message%!
  45.  
  46. CommandProtectionMsg: &cYou may not execute this command. Your abuse and actions have been sent to administrators!
  47. # This is the default "Command protection error" message, edit this to whatever you want!
  48.  
  49. ReportDelayNew: 60 seconds # Default Timeout #
  50. # How long do you want players to have to wait before sending another report? **SECONDS ONLY**
  51. # The time method saved / How long you want it to be. It can be [ minutes / hours / seconds / days ]
  52. # Now {@ReportDelayNew} #
  53. ReportDelayInt: seconds # Default Timeout #
  54. # The time method saved / How long you want it to be. It can be [ minutes / hours / seconds / days ]
  55. #--- OKAY THIS WORKS ---
  56.  
  57. ReportDelayMessage: &7Sorry, you must wait &b60 Seconds&7 before you can report another player to prevent spam. # Default Message #
  58. # The message sent back to a player after they try to report another player during the cooldown
  59.  
  60. ReportAdmins: * # Default Option set to * #
  61. # The admin permission that allows only certain people to see reports that are sent by players. [e.g rank.admin - FrostChat.admin etc] #
  62.  
  63. UseExperimentalAntiAd: false # Default to False as it is still somewhat buggy and can cause some lag #
  64. # The experimental anti advertisement module is a more powerful ad blocker which is currently still in the testing phase #
  65. # Use this at your own risk or if you are a well skilled Skript developer! #
  66.  
  67. AdvertiseAlertStaff: true # Default to true # It can become spammy
  68. # Set this to true if you wish to force the Skript to alert staff when players advertise a blocked link! #
  69. # Still currently in the testing phase. #
  70.  
  71. CurseAlertStaff: true # Default to true # It can become spammy
  72. # Set this to true if you wish to force the Skript to alert staff when players curse! #
  73. # Still currently in the testing phase. #
  74.  
  75. OnLoadMessage: true # Default to true #
  76. # Lets you know if the skript needs updating or not + more info ( Sorta pointless I know )#
  77.  
  78. # Coming Soon Below #
  79. OnLoadPermission: * # Default to * #
  80. # The permission required to be able to see the on load message. ( OnLoadMessage needs to be set to true )
  81.  
  82. # ---------------------------------------------- End of Configuration ---------------------------------------------- #
  83. # Custom Variables List #
  84.  
  85. # Variable | | Usage | Optional Usage #
  86.  
  87. # _loc::player ( Location ) - {_loc::%player%} - %{_loc::%player%}%
  88. # {FrostChat3::%uuid of player%} ( Player )
  89.  
  90. # Disabled Configuration Parts
  91. # To enable remove the # before and after the code, to remove it add "#" before it
  92.  
  93. # Line 30 | 35 - On join UpdateChecker = Enabled
  94.  
  95. # On join functions #
  96.  
  97. on first join:
  98. set {FrostChat3::%player%} to player
  99.  
  100.  
  101.  
  102. # On Load Function #
  103.  
  104.  
  105. on load:
  106. if {@OnLoadMessage} is true:
  107. broadcast "&8&m--------------------"
  108. broadcast "&bFrostChat {@Version} &fskript by FrostedWeFall loaded!"
  109. broadcast "&8&m--------------------"
  110. if {@OnLoadMessage} is false:
  111. stop
  112.  
  113.  
  114.  
  115. # Updater Module #
  116.  
  117.  
  118.  
  119.  
  120. on join:
  121. if player has permission "FrostChat.updatechecker" or "FrostChat.*" or "FrostChat.admin.*":
  122. if text from "https://pastebin.com/raw/HqKptVgh" is "3.1.0":
  123. send "&a&lCOMPLETE&7! You have the latest version of &bFrostChat 3&7!"
  124. if text from "https://pastebin.com/raw/HqKptVgh" is not "3.1.0":
  125. send "&c&lWARNING&7! You have not got the latest version of &bFrostChat 3&7! Please download the &clatest version&7!"
  126.  
  127.  
  128. command /updatechecker:
  129. description: Checks to see if you have the latest stable build installed!
  130. usage: /updatechecker
  131. aliases: /uc, /checkupdate, /cu, /FrostChat:updatechecker, /FrostChat:uc, /FrostChat:checkupdate, /FrostChat:cu
  132. permission: FrostChat.admin
  133. permission message: {@NoPermissionMessage}
  134. trigger:
  135. if text from "https://pastebin.com/raw/HqKptVgh" is "3.1.0":
  136. send "&a&lCOMPLETE&7! You have the latest version of &bFrostChat 3&7!"
  137. if text from "https://pastebin.com/raw/HqKptVgh" is not "3.1.0":
  138. send "&c&lWARNING&7! You have not got the latest version of &bFrostChat 3&7! Please download the &clatest version&7!"
  139.  
  140.  
  141. # Checks your ping by sending a message back to you!
  142.  
  143. command /ping:
  144. description: Checks your ping by sending a message back to you!
  145. usage: /ping
  146. aliases: /p, /pi, /FrostChat:ping, /FrostChat:p, /FrostChat:pi
  147. permission: FrostChat.player
  148. permission message: {@NoPermissionMessage}
  149. trigger:
  150. send "%nl%&7%player% - &b%player's ping%ms%nl%%nl% %uuid of player% %nl%"
  151.  
  152. # Skript Reloader Command #
  153.  
  154. command /fc [<text>] [<text>]:
  155. description: Reload command for FrostChat 3
  156. usage: /fc [<arg-1>] [<arg-2>]
  157. aliases: /FrostChat:fc /cc
  158. permission: FrostChat.admin
  159. permission message: {@NoPermissionMessage}
  160. trigger:
  161. if arg 1 is "reload":
  162. make console execute command "/sk reload {@SkriptName}"
  163. wait 4 seconds
  164. if arg 1 is "disable":
  165. set {Chat} to false
  166. broadcast "{@Prefix} &c%player% has disabled the server chat."
  167. if arg 1 is "enable":
  168. set {Chat} to true
  169. broadcast "{@Prefix} &a%player% has enabled the server chat."
  170. # STILL IN EARLY TESTING #
  171. if arg 1 is "addword" or "add":
  172. if {@UseExperimentalAntiAd} is false:
  173. send "&cYou must set '{UseExperimentalAntiAd}' to true at the top of the Skript in the config"
  174. if {@UseExperimentalAntiAd} is true:
  175. if arg 2 is set:
  176. add arg 2 to {BlockedDomains::List::*}
  177. send "&7Sufcessfully added the domain &a%arg-2% to {BlockedDomains::List::*}"
  178. if arg 2 is not set:
  179. send "&cYou must specify a domain to be added to the list of blocked domains"
  180. stop
  181. if arg 1 is "removeword" or "delword":
  182. if {@UseExperimentalAntiAd} is false:
  183. send "&cYou must set '{UseExperimentalAntiAd}' to true at the top of the Skript in the config"
  184. if {@UseExperimentalAntiAd} is true:
  185. if arg 2 is set:
  186. remove arg 2 from {BlockedDomains::List::*}
  187. send "&7Sufcessfully removed the domain"
  188. if arg 1 is "list" or "listwords":
  189. if {@UseExperimentalAntiAd} is false:
  190. send "&cYou must set '{{UseExperimentalAntiAd}' to true at the top of the Skript in the config"
  191. if {@UseExperimentalAntiAd} is true:
  192. send "&cList of Domains!"
  193. loop {BlockedDomains::List::*}:
  194. send "%{BlockedDomains::List::*}%"
  195. # NEW IN 3.1.0 #
  196. if arg 1 is "reset" or "resetwords":
  197. if {@UseExperimentalAntiAd} is false:
  198. send "&cYou must set '{{UseExperimentalAntiAd}' to true at the top of the Skript in the config"
  199. if {@UseExperimentalAntiAd} is true:
  200. send "&4Sucessfully reset all listed domains!"
  201. delete {BlockedDomains::List::*}
  202. # END OF TESTING CODE
  203. if arg 1 is not set:
  204. send "&7Incorrect Syntax! Missing arg at /fc [<arg 1>] <- &f[HERE]"
  205.  
  206. on chat:
  207. if {Chat} is false:
  208. if player does not have permission "FrostChat.bypass":
  209. cancel event
  210. send "&7You can not currently send messages whilst chat is muted"
  211. if {Chat} is true:
  212. stop
  213.  
  214.  
  215. # Help Menu #
  216.  
  217. command /FChat:
  218. description: Main command and help menu for FrostChat 3
  219. usage: /FrostChat
  220. aliases: /FrostChat:FrostChat
  221. permission: FrostChat.FrostChat
  222. permission message: {@NoPermissionMessage}
  223. trigger:
  224. send "&7"
  225. send "&b/fc &a[reload/disable/enable/list/addword/removeword/reset] &8- &7Reloads the Skript or Disables / Enables Chat"
  226. send "&b/FrostChat &8- &7Opens up this menu"
  227. send "&b/ping &8- &7Checks the players ping &f( Response time )"
  228. send "&b/updatechecker &8- &7Checks to see if you require an update"
  229. send "&b/FrostChat3 &8- &7The main information command for FrostChat 3"
  230. send "&b/report [user] [reason] &8- &7Allows you to report any user"
  231. send "&7"
  232. send "&7Legend >> &a[] &8= &7Required &f| &b<> &8= &7Optional"
  233.  
  234.  
  235. command /FrostChat3:
  236. description: The information command about FrostChat3
  237. usage: /FrostChat3
  238. aliases: /FrostChat:FrostChat3
  239. permission: FrostChat.FrostChat
  240. permission message: {@NoPermissionMessage}
  241. trigger:
  242. send "&7"
  243. send "&b&lFrostChat 3"
  244. send "&7Created By - &bFrostedWeFall"
  245. send "&7Version - &b{@Version}"
  246. send "&7"
  247.  
  248. # Anti Hacksuation Module #
  249.  
  250. on chat:
  251. if player doesn't have permission "FrostChat.bypass":
  252. if message contains {@AntiHacksuation}:
  253. cancel event
  254. send "&cNOTE: &7Afcusing players of cheating in-game is against the rules. If you think someone is cheating, please gather evidence and report it at &a{@DiscordLink}"
  255. stop
  256. # Anti Advertise 2 BETA #
  257.  
  258. on chat:
  259. if {@UseExperimentalAntiAd} is false:
  260. if message contains {@AntiAdvertisment}:
  261. if player does not have permission "FrostChat.bypass":
  262. cancel event
  263. message "&7-------------------------------------------"
  264. message "&bAdvertising is against the rules. You will be"
  265. message "&bpermanently banned from the server if you attempt"
  266. message "&bto advertise."
  267. message "&7-------------------------------------------"
  268. stop
  269. # EXPERIMENTAL POWERFUL ANTI ADVERTISE #
  270. if {@UseExperimentalAntiAd} is true:
  271. if message contains {BlockedDomains::List::*}:
  272. if player does not have permission "FrostChat.bypass":
  273. cancel event
  274. message "&7-------------------------------------------"
  275. message "&bAdvertising is against the rules. You will be"
  276. message "&bpermanently banned from the server if you attempt"
  277. message "&bto advertise."
  278. message "&7-------------------------------------------"
  279. stop
  280. loop all players:
  281. if player has permission "FrostChat.moderator":
  282. if {@AdvertiseAlertStaff} is true:
  283. send "&c%player% &7tried to Advertise and say ""&c%message%""" to loop-player
  284. if {@AdvertiseAlertStaff} is false:
  285. stop
  286. # Anti Swear 1 BETA #
  287.  
  288. on chat:
  289. if message contains {@AntiSwear}:
  290. if player does not have permission "FrostChat.bypass":
  291. cancel event
  292. message "&7-------------------------------------------"
  293. message "&bSwearing / Cursing is against the rules. You will be"
  294. message "&bpermanently muted from the server if you attempt"
  295. message "&bto swear / curse again."
  296. message "&7-------------------------------------------"
  297. loop all players:
  298. if player has permission "FrostChat.moderator":
  299. if {@CurseAlertStaff} is true:
  300. send "&c%player% &7tried to Curse and say ""&c%message%""" to loop-player
  301. if {@CurseAlertStaff} is false:
  302. stop
  303.  
  304. # Commands #
  305. command /report [<player>] [<text>]:
  306. description: Report players with this command.
  307. usage: /report [<player>] [<reason>]
  308. permission: FrostChat.player
  309. trigger:
  310. if arg 1 is not set:
  311. send "&7Usage: &b/report <player> <reason>"
  312. stop
  313. if arg 2 is not set:
  314. send "&7Usage: &b/report <player> <reason>"
  315. stop
  316. if arg 1 is a player:
  317. if arg 2 is set:
  318. set {_waited} to difference between {FrostChatreport.%player%.lastused} and now
  319. if {_waited} is less than {@ReportDelayNew} seconds:
  320. message "{@ReportDelayMessage}"
  321. stop
  322. if arg-1 is "%player%":
  323. message "&cError: You can not report yourself!"
  324. stop
  325. loop all players:
  326. loop-player has the permission "{@ReportAdmins}":
  327. send "&7&m--------------------------------" to loop-player
  328. send "&b&lNEW REPORT" to loop-player
  329. send "&7Reported Player: &b%arg-1%" to loop-player
  330. send "&7Reporting Player: &b%player%" to loop-player
  331. send "&7Reason: &3%arg-2%" to loop-player
  332. send "&7&m--------------------------------" to loop-player
  333. set {FrostChatreport.%player%.lastused} to now
  334. message "{@Prefix} &7You have &asucessfully reported &7%arg-1% &7for &7%arg-2%&7."
  335.  
  336.  
  337.  
  338.  
  339. # Command Protection 1 ALPHA #
  340.  
  341. command /pl:
  342. trigger:
  343. send "&fPlugins (1): &aFrostChat3"
  344.  
  345. command /plugins:
  346. trigger:
  347. send "&fPlugins (1): &aFrostChat3"
  348.  
  349. command /?:
  350. trigger:
  351. send "&b--------- &fHelp: Index (0/0) &b--------------------"
  352.  
  353. command /help:
  354. trigger:
  355. send "&b---- &6Help &b-- &6Page &c1&6/&c1 &b----"
  356.  
  357. command /bukkit:?:
  358. trigger:
  359. send "&b--------- &fHelp: Index (0/0) &b--------------------"
  360.  
  361. command /bukkit:help:
  362. trigger:
  363. send "&b--------- &fHelp: Index (0/0) &b--------------------"
  364.  
  365. command /bukkit:pl:
  366. trigger:
  367. send "&fPlugins (1): &aFrostChat3"
  368.  
  369. command /bukkit:plugins:
  370. trigger:
  371. send "&fPlugins (1): &aFrostChat3"
  372.  
  373. command /version:
  374. trigger:
  375. send "{@CommandProtectionMsg}"
  376.  
  377. command /bukkit:version:
  378. trigger:
  379. send "{@CommandProtectionMsg}"
  380.  
  381. command /icanhasbukkit:
  382. trigger:
  383. send "{@CommandProtectionMsg}"
  384.  
  385. command /ver:
  386. trigger:
  387. send "{@CommandProtectionMsg}"
  388.  
  389. command /bukkit:ver:
  390. trigger:
  391. send "{@CommandProtectionMsg}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement