SamsCreations
SamsCreations

gameplay/competitions.yml. Types: largest_fish, most_fish, total_size, specific_fish, specific_rarity, random.

weekend_big_fish:
  name: "<gradient:#FFDC6B:#E5A13B>Weekend Big Fish</gradient>"
  type: largest_fish
  duration: 30
  schedule:
    days: [saturday, sunday]
    times: ["18:00"]
  min-players: 3
  rewards:
    "1": ["eco give %player% 5000"]
    "2": ["eco give %player% 2500"]
    participation: ["eco give %player% 100"]

A boss bar shows the goal, time left and the leader. /fishing top shows the standings; the top three are announced at the end. A step-by-step guide with more examples is in Your Own Competitions.

While a competition runs, the standings show in the sidebar on the right, so nobody has to type /fishing top. When it ends, the sidebar disappears and any sidebar shown before comes back.

competition-scoreboard:   # config.yml
  enabled: true
  top: 5                  # places listed (1 - 10)

Its texts are in lang/<language>.yml under competition.scoreboard: the title, the lines (%top% becomes one line per place; also %name%, %goal%, %time%, %players%), the line of each place and the text when nobody has caught anything yet.

Already using a scoreboard plugin?

The sidebar uses the server's main scoreboard. If a plugin like TAB gives players their own scoreboard, set enabled: false and put the placeholders %samsfishing_comp_top_1_name%, %samsfishing_comp_top_1_score%, %samsfishing_comp_rank%, ... into yours. Folia has no scoreboards, so there it only works through placeholders.