Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  1. on load:
  2. if folder "plugins/skript/scripts/Chat" is not exists:
  3. create folder "plugins/skript/scripts/Chat"
  4. download from "XXX" to file "plugins/Skript/scripts/Chat/config.yml"
  5. on load:
  6. set {Chat::Msg::Clear} to colored value "ChatConfig.msg.clear" get of "plugins/skript/scripts/Chat/config.yml"
  7. set {Chat::Msg::Wlacz} to colored value "ChatConfig.msg.wlacz" get of "plugins/skript/scripts/Chat/config.yml"
  8. set {Chat::Msg::Wylacz} to colored value "ChatConfig.msg.wylacz" get of "plugins/skript/scripts/Chat/config.yml"
  9. set {Chat::Msg::offerror} to colored value "ChatConfig.msg.offerror" get of "plugins/skript/scripts/Chat/config.yml"
  10. set {Chat::Ip::Minecraft} to colored value "ChatConfig.ip.minecraft" get of "plugins/skript/scripts/Chat/config.yml"
  11. set {Chat::Ip::Teamspek} to colored value "ChatConfig.ip.teamspeak" get of "plugins/skript/scripts/Chat/config.yml"
  12. set {Chat::Ip::Strona} to colored value "ChatConfig.ip.strona" get of "plugins/skript/scripts/Chat/config.yml"
  13. set {Chat::Menu::Nazwa} to colored value "ChatConfig.menu.nazwa" get of "plugins/skript/scripts/Chat/config.yml"
  14. set {Chat::Menu::Wlacz} to colored value "ChatConfig.menu.wlacz" get of "plugins/skript/scripts/Chat/config.yml"
  15. set {Chat::Menu::Wylacz} to colored value "ChatConfig.menu.wylacz" get of "plugins/skript/scripts/Chat/config.yml"
  16. set {Chat::Menu::Clear} to colored value "ChatConfig.menu.clear" get of "plugins/skript/scripts/Chat/config.yml"
  17. on join:
  18. loop 100 times:
  19. send " "
  20. loop 1 times:
  21. send "&8*&8&m-----&r&8*&7 Witaj na &9%{Chat::Ip::Minecraft}%! &8*&8&m-----&r&8*"
  22. send ""
  23. send ""
  24. send "&7ยป &fNasz ts to: %{Chat::Ip::Teamspek}%!."
  25. send "&7ยป &fNasza strona: %{Chat::Ip::Strona}%!."
  26. send ""
  27. send ""
  28. send "&8*&8&m-----&r&8* &8*&8&m-----&r&8* &8*&8&m-----&r&8* &8*&8&m-----&r&8*"
  29. command /c [<text>]:
  30. trigger:
  31. if arg 1 is "czysc" or "cc" or "clear":
  32. loop 100 times:
  33. send " " to all players
  34. loop 1 times:
  35. send "%{Chat::Msg::Clear}% %player%" to all players
  36. send " " to all players
  37. if arg 1 is "off" or "wylacz":
  38. set {chat} to false
  39. loop 100 times:
  40. send " " to all players
  41. loop 1 times:
  42. send "%{Chat::Msg::Wylacz}% %player%" to all players
  43. send " " to all players
  44. if arg 1 is "on" or "wlacz":
  45. set {chat} to true
  46. loop 100 times:
  47. send " " to all players
  48. loop 1 times:
  49. send "%{Chat::Msg::Wlacz}% %player%" to all players
  50. send " " to all players
  51. if arg 1 is not set:
  52. open chest with 1 rows named "%{Chat::Menu::Nazwa}%" to player
  53. format slot 0 of player with 1 of 160:15 named " " to run ""
  54. format slot 1 of player with 1 of 160:15 named " " to run ""
  55. format slot 2 of player with 1 of 160:4 named "%{Chat::Menu::Clear}%" to close then run [make player execute command "/c clear"]
  56. format slot 3 of player with 1 of 160:15 named " " to run ""
  57. format slot 4 of player with 1 of 160:14 named "%{Chat::Menu::Wylacz}%" to close then run [make player execute command "/c off"]
  58. format slot 5 of player with 1 of 160:15 named " " to run ""
  59. format slot 6 of player with 1 of 160:5 named "%{Chat::Menu::Wlacz}%" to close then run [make player execute command "/c on"]
  60. format slot 7 of player with 1 of 160:15 named " " to run ""
  61. format slot 8 of player with 1 of 160:15 named " " to run ""
  62. stop
  63. on chat:
  64. if {chat} is false:
  65. player don't have permissions "chat.*" or "chat.spam":
  66. cancel event
  67. send "%{Chat::Msg::offerror}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement