Skip to content

Configurable triggerable events for broadcasts #15

@TBG1000

Description

@TBG1000

Issue:

Broadcasts are only governed by a time interval and cannot be triggered by events, but only by executing commands.

Background:

Broadcasts in TGM allowed server administrator to configure several events that triggered a broadcast.

Such events are no longer available with Mars.

Desired solution:

Server owners should be able to specify some event(s) that will trigger the broadcast(s).
Lack of the events property would mean the broadcast is just periodically sent in accordance with the fixed global interval.

Some events extracted from TGM:

  • onFirstJoin (when the player first joins the server)
  • onJoin (when the player joins the server)
  • onMatchResult (when the match ends)
  • onTeamJoin (when the player joins a team)
  • onMatchLoad (when a match is loaded)

Example config:

- name: broadcastOnJoin
  message: This broadcast is sent every time you join the server!
  events: onJoin # Broadcast is sent to the player every time they join the server

- name: epicBroadcast
  message: This broadcast is sent every minute, but also when you first join the server!
  # This broadcast is sent when the player first joins the server, 
  # then periodically (every 1 minute according to the global broadcast interval)
  events: onFirstJoin, interval

Affected areas / files:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions