Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- if file "plugins/Skript/scripts/config.yml" doesn't exists:
- create file "plugins/Skript/scripts/config.yml"
- wait 5 ticks
- wf "prefix: §6[§9PREFIX§6]" to "plugins/Skript/scripts/config.yml"
- wf "message: §aAutoMessage" to "plugins/Skript/scripts/config.yml"
- wf "active: false" to "plugins/Skript/scripts/config.yml"
- wait 3 ticks
- set {message} to value "message" get of "plugins/Skript/scripts/config.yml"
- set {prefix} to value "prefix" get of "plugins/Skript/scripts/config.yml"
- # set {temps} to value "temps" get of "plugins/Skript/scripts/config.yml"
- set {active} to value "active" get of "plugins/Skript/scripts/config.yml"
- broadcast "&6[Reload] &aVariables bien reload !"
- every 10 seconds:
- if {active} is "true":
- broadcast "%{prefix}% %{message}%"
- command /areload:
- permission: reload.var
- trigger:
- if file "plugins/Skript/scripts/config.yml" doesn't exists:
- create file "plugins/Skript/scripts/config.yml"
- wait 5 ticks
- wf "prefix: §6[§9PREFIX§6]" to "plugins/Skript/scripts/config.yml"
- wf "message: §aAutoMessage" to "plugins/Skript/scripts/config.yml"
- wf "active: false" to "plugins/Skript/scripts/config.yml"
- wait 3 ticks
- set {message} to value "message" get of "plugins/Skript/scripts/config.yml"
- set {prefix} to value "prefix" get of "plugins/Skript/scripts/config.yml"
- set {active} to value "active" get of "plugins/Skript/scripts/config.yml"
- send "&6[Reload] &aVariables bien reload !"
- command /annonce:
- trigger:
- broadcast "%{prefix}% %{message}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement