SamsCreations
SamsCreations

Competitions are in plugins/SamsFishing/gameplay/competitions.yml, each one under competitions:. Only one runs at a time.

A Daily Competition

competitions:
  lunch_catch:
    name: "<#FFD36B>Lunch Catch"
    type: most_fish
    duration: 15                       # minutes
    schedule:
      times: ["12:00"]                 # every day at noon (server time)
    min-players: 2                     # skipped if fewer players are online
    rewards:
      "1": ["eco give %player% 1000", "fishing give %player% bait corn 4"]
      "2": ["eco give %player% 500"]
      "3": ["eco give %player% 250"]
      participation: ["eco give %player% 50"]
  • type decides how players score:
TypeScore
largest_fishThe single biggest fish, in cm
most_fishHow many fish
total_sizeAll sizes added up
specific_fishHow many of one fish (target: <catch id>)
specific_rarityHow many of one rarity (target: diamond)
randomOne of the above, picked when it starts
  • schedule.days limits it to some weekdays ([saturday, sunday]). Leave it out for every day. times can hold several start times: ["12:00", "20:30"].
  • rewards are console commands per place. participation goes to everyone else who caught something. They can use %player%, %place% and %score%.

Leave out schedule for a competition you only start by hand.

Examples

A hunt for one fish, with a random target each time when you leave target out:

  golden_hunt:
    name: "<gradient:#FFDC6B:#E5A13B>Golden Hunt</gradient>"
    type: specific_fish
    target: golden_carp
    duration: 20
    schedule:
      days: [friday]
      times: ["19:00"]
    rewards:
      "1": ["eco give %player% 3000"]

A weekend contest for the biggest fish, with gear as a prize:

  weekend_giant:
    name: "<#7CC4FF>Weekend Giant"
    type: largest_fish
    duration: 45
    schedule:
      days: [saturday, sunday]
      times: ["17:00"]
    min-players: 3
    rewards:
      "1": ["fishing give %player% rod golden_rod", "eco give %player% 5000"]
      "2": ["fishing give %player% hook golden_hook"]
      "3": ["fishing give %player% totem fortune_totem"]

Running One

  • /fishing competition start <id> [minutes] starts it now, /fishing competition stop ends it, /fishing competition list lists them.
  • /fishing reload reads the file again.

While it runs, everyone sees a boss bar with the goal, the time left and the leader, and the standings in the sidebar on the right (see Competitions). /fishing top shows the full standings in chat. At the end the top three are announced and the rewards are given.