Warzone / mars

All-in-one plugin for PGM servers
GNU Affero General Public License v3.0
9 stars 3 forks source link

Configurable intervals for broadcasts #14

Open TBG1000 opened 2 years ago

TBG1000 commented 2 years ago

Issue:

Automatic broadcasts using Mars use a fixed, global unmodifiable one minute interval.

Background:

Broadcasts in TGM allowed server administrator to at least configure a desired global interval for any loaded broadcasts. This interval could be changed at any time from the server panel.

Currently, with Mars, only the following properties are available: name, message, permission, newline. Broadcasts are also managed from the backend (API) by manipulating the broadcasts.yml file.

Desired solution:

Server owners should have the ability to configure a default global interval for all broadcasts, as well as an individual interval property for each broadcast.

Example config:

global-interval: 60 # One minute
broadcasts:
- name: vip
  message: This is a VIP broadcast!
  permission: broadcasts.vip
  interval: 30 # Broadcasted every 30 seconds, overrides global setting
  newline: false

Affected areas / files: