Advertisement
Phe0X

Yml

Jul 5th, 2017
767
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. on load:
  2. if file "plugins/Skript/scripts/config.yml" doesn't exists:
  3. create file "plugins/Skript/scripts/config.yml"
  4. wait 5 ticks
  5. wf "prefix: §6[§9PREFIX§6]" to "plugins/Skript/scripts/config.yml"
  6. wf "message: §aAutoMessage" to "plugins/Skript/scripts/config.yml"
  7. wf "active: false" to "plugins/Skript/scripts/config.yml"
  8. wait 3 ticks
  9. set {message} to value "message" get of "plugins/Skript/scripts/config.yml"
  10. set {prefix} to value "prefix" get of "plugins/Skript/scripts/config.yml"
  11. # set {temps} to value "temps" get of "plugins/Skript/scripts/config.yml"
  12. set {active} to value "active" get of "plugins/Skript/scripts/config.yml"
  13. broadcast "&6[Reload] &aVariables bien reload !"
  14. every 10 seconds:
  15. if {active} is "true":
  16. broadcast "%{prefix}% %{message}%"
  17.  
  18. command /areload:
  19. permission: reload.var
  20. trigger:
  21. if file "plugins/Skript/scripts/config.yml" doesn't exists:
  22. create file "plugins/Skript/scripts/config.yml"
  23. wait 5 ticks
  24. wf "prefix: §6[§9PREFIX§6]" to "plugins/Skript/scripts/config.yml"
  25. wf "message: §aAutoMessage" to "plugins/Skript/scripts/config.yml"
  26. wf "active: false" to "plugins/Skript/scripts/config.yml"
  27. wait 3 ticks
  28. set {message} to value "message" get of "plugins/Skript/scripts/config.yml"
  29. set {prefix} to value "prefix" get of "plugins/Skript/scripts/config.yml"
  30. set {active} to value "active" get of "plugins/Skript/scripts/config.yml"
  31. send "&6[Reload] &aVariables bien reload !"
  32.  
  33. command /annonce:
  34. trigger:
  35. broadcast "%{prefix}% %{message}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement