ArtzifyHD

FrostChat Skript V2

Jul 20th, 2017
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. options:
  2. prefix: &7[&bFrostCHAT&7]
  3.  
  4. command /frostchat [<text>]:
  5. aliases: /fchat, /frostc
  6. trigger:
  7. if arg 1 is "reload":
  8. send "{@prefix} &aSkript has been reloaded&8!"
  9. console command "/skript reload FrostChat.sk"
  10. if arg 1 is not set:
  11. send "{@prefix} &6&lCommands&8:"
  12. send "&8- &7/frostchat reload"
  13. send "&8- &7/frostchat help"
  14. send "&8- &7/frostchat version"
  15. if arg 1 is "help":
  16. send "{@prefix} &6&lHelp&8:"
  17. send "&8- &7FrostChat Skript By &aFrostedWeFall"
  18. send "&8- &7Version&8: &e1.0"
  19. send "&8- &7Youtube&8: &dArtzifyHD"
  20. if arg 1 is "version":
  21. send "&8- &9Version&8: &a1.0"
  22. send "&8- &9FrostChat Skript By &aFrostedWeFall"
  23. command /chat [<text>]:
  24. permission: frostchat.chat
  25. permission message: &cYou don't have permission!
  26. trigger:
  27. if arg 1 is not set:
  28. send "{@prefix} &b&lFrostChat Commands&8:"
  29. send "&8- &7/chat clear"
  30. send "&8- &7/chat disable"
  31. send "&8- &7/chat enable"
  32. if arg 1 is "clear":
  33. loop 300 times:
  34. broadcast ""
  35. broadcast ""
  36. broadcast "{@prefix} &2Chat has been cleared by &a%player%"
  37. if arg 1 is "disable":
  38. set {chat} to false
  39. broadcast "{@prefix} &cChat has been disabled by an administrator&8."
  40. if arg 1 is "enable":
  41. set {chat} to true
  42. broadcast "{@prefix} &aChat has been enabled by an administrator&8."
  43.  
  44. on chat:
  45. if {chat} is false:
  46. if player has permission "frostchat.chat":
  47. cancel event
  48. broadcast "&9%player's displayname%&8: &f%message%"
  49. else:
  50. cancel event
  51. send "{@prefix} &cChat has been disabled by an administrator&8!"
  52. else:
  53. cancel event
  54. broadcast "&9%player's displayname%&8: &f%message%"
Add Comment
Please, Sign In to add comment