channel: type: world events: on server start: - if ! == null: - yaml create id:channel - yaml id:channel set general:->:general - yaml load:channel.yml id:channel on player chats: - determine passively cancelled - narrate : targets:]> on player joins: - if !: - flag channelpermission:general - flag channel:general - flag server :->: on player quits: - flag server :<-: on channel_select command: - flag server :<-: - flag channel: - flag server :->: - narrate "joined: channel" - determine fulfilled change_channel: type: command name: channel debug: true description: usage: allowed help: false script: - foreach as:perms: - foreach ]> as:channels: - narrate "click here:<[channels]>].on_click[/channel_select <[channels]>]>" - wait 10t create_channel: type: command name: create_channel debug: true description: usage: allowed help: - if : - narrate "args as follows /create_channel level_of_permission channel_name" script: - if : - if ! == null: - yaml create id:channel - yaml id:channel set :->: - yaml savefile:channel.yml id:channel channel_perm: type: command name: channel_perm debug: false description: usage: allowed help: script: - if : - flag ]> channelpermission:->: whisper: type: command name: whisper debug: false description: usage: allowed help: script: - narrate from<&sp>:]> targets:]>