Skip to content

Announcements and Commands - revamped #46

@slipcor

Description

@slipcor

Since no-one is complaining about this, I have to. The current way of setting up announcements and commands is very strict and narrow mineded, to a degree where it only makes sense for a fringe minority.

There needs to be a dedicated block for both - that supports the following options:

  • triggers to react to
    • current streak
    • max streak
    • death
    • kill
    • streak ending
  • definition whether the trigger is
    • on value X reached
    • every X triggers
  • restrictions on the trigger based on
    • minimal value
    • maximal value

As this becomes more and more complicated, we might want to look into setting this up with commands, and relying on one YML file per setting that can be combined. However, that is up to the server owner to decide, really.

commands:
  deaths:
    interval:
      '10': 'tellraw %player% You have died %total% times already!'
  kills:
    amount:
      '100': 'tellraw %player% Congratz on your 100th kill!'
announcements:
  streak:
    interval:
      '5': '%player% is on a hunt!'
    amount:
      '100': '%player% is on a streak of 100 - better stop them now!'

Some examples here, I think this makes the most sense in a way that we can suppot the old way and the new way. This can be expanded to be multiline just like before, and I prefer this over a more verbose setup like

announcements:
  [some node indicator]:
    trigger: streak
    interval: 5
    message: '%player% is on a hunt!'
  [next node indicator]:
    trigger: streak
    amount: 100
    message: '%player% killed 100 players in a row!'

I am not sure. I really prefer the numbers being used here instead of stringified integers as keys.

Thoughts, anyone? I am up for totally different solutions :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions