58 lines
2.2 KiB
Plaintext
58 lines
2.2 KiB
Plaintext
announcers_command_intercom:
|
|
debug: false
|
|
type: command
|
|
name: intercom
|
|
description: Broadcast a message through the intercom.
|
|
usage: /intercom (message)
|
|
permission: announcers.command.intercom
|
|
tab completions:
|
|
1: <<>message<>>
|
|
script:
|
|
- if <context.source_type> != player:
|
|
- narrate "<&c>Please run this command as a player."
|
|
- stop
|
|
- if <context.args.size> <= 0:
|
|
- narrate "<&c>Please enter a message!"
|
|
- stop
|
|
- define message <context.args.space_separated>
|
|
- announce "<&6>[<&c><&l>INTERCOM<&6>] <&7><&o>(<player.name>) <&f><proc[character_get_name].context[<player>]> says <&dq><[message]><&dq>"
|
|
|
|
announcers_command_collegeintercom:
|
|
debug: false
|
|
type: command
|
|
name: collegeintercom
|
|
description: Broadcast a message through the college intercom.
|
|
usage: /collegeintercom (message)
|
|
permission: announcers.command.collegeintercom
|
|
tab completions:
|
|
1: <<>message<>>
|
|
script:
|
|
- if <context.source_type> != player:
|
|
- narrate "<&c>Please run this command as a player."
|
|
- stop
|
|
- if <context.args.size> <= 0:
|
|
- narrate "<&c>Please enter a message!"
|
|
- stop
|
|
- define message <context.args.space_separated>
|
|
- define recipients <server.online_players.filter_tag[<[filter_value].has_permission[announcers.see.collegeintercom]>]>
|
|
- narrate targets:<[recipients]> "<&6>[<&c><&l>COLLEGE INTERCOM<&6>] <&7><&o>(<player.name>) <&f><proc[character_get_name].context[<player>]> says <&dq><[message]><&dq>"
|
|
|
|
announcers_command_advert:
|
|
debug: false
|
|
type: command
|
|
name: advert
|
|
description: Broadcast a message for your shop.
|
|
usage: /advert (message)
|
|
permission: announcers.command.advert
|
|
tab completions:
|
|
1: <<>message<>>
|
|
script:
|
|
- if <context.source_type> != player:
|
|
- narrate "<&c>Please run this command as a player."
|
|
- stop
|
|
- if <context.args.size> <= 0:
|
|
- narrate "<&c>Please enter a message!"
|
|
- stop
|
|
- define message <context.args.space_separated>
|
|
- announce "<&6>[<&2>Advert<&6>]<&f>: <&7><&o>(<player.name>) <&f><proc[character_get_name].context[<player>]> - <[message]>"
|