Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable triggerable events for broadcasts #15

Open
TBG1000 opened this issue Jul 6, 2022 · 0 comments
Open

Configurable triggerable events for broadcasts #15

TBG1000 opened this issue Jul 6, 2022 · 0 comments

Comments

@TBG1000
Copy link
Member

TBG1000 commented Jul 6, 2022

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant