playlist:
type: world
events:
on server start:
- while !<server.flag[playlist].as_list.is_empty> {
- - define psound:<server.flag[playlist].list.random>
- - playsound <server.list_online_players> sound:%psound%
- - flag server playlist:<-:%psound%
- - wait 300s
- }
+ - define psound:<server.flag[playlist].list.random>
+ - playsound <server.list_online_players> sound:%psound%
+ - flag server playlist:<-:%psound%
+ - wait 300s
+ }
- if <server.flag[playlist].as_list.is_empty> {
- flag server playlist:->:sound1
- flag server playlist:->:sound2
}