Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- load yaml "plugins/Config/Broadcast.yml" as "plugins/Config/Broadcast.yml"
- if skript-yaml value "Autobroadcast" from "plugins/Config/Broadcast.yml" does not exist:
- add "" to skript-yaml list "Autobroadcast" from "plugins/Config/Broadcast.yml"
- if skript-yaml value "Status" from "plugins/Config/Broadcast.yml" does not exist:
- set skript-yaml value "Status" from "plugins/Config/Broadcast.yml" to "inaktiv"
- save yaml "plugins/Config/Broadcast.yml"
- command /yml:
- trigger:
- load yaml "plugins/Config/Broadcast.yml" as "plugins/Config/Broadcast.yml"
- every 1 seconds:
- set {_Autobroadcast} to skript-yaml value "Status" from "plugins/Config/Broadcast.yml"
- {_Autobroadcast} is "aktiv"
- if skript-yaml list "Autobroadcast" from "plugins/Config/Broadcast.yml" is empty:
- stop
- if {Autobroadcast::*} is not set:
- set {Autobroadcast::*} to skript-yaml list "Autobroadcast" from "plugins/Config/Broadcast.yml"
- set {_message} to first element out of {Autobroadcast::*}
- {_message} is not ""
- broadcast {_message}
- remove {_message} from {Autobroadcast::*}
Add Comment
Please, Sign In to add comment