SamsFishing · Create Your Own
Your Own Competitions
Add a competition, schedule it and give rewards.
1 min read · Updated
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"]typedecides how players score:
| Type | Score |
|---|---|
largest_fish | The single biggest fish, in cm |
most_fish | How many fish |
total_size | All sizes added up |
specific_fish | How many of one fish (target: <catch id>) |
specific_rarity | How many of one rarity (target: diamond) |
random | One of the above, picked when it starts |
schedule.dayslimits it to some weekdays ([saturday, sunday]). Leave it out for every day.timescan hold several start times:["12:00", "20:30"].rewardsare console commands per place.participationgoes 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 stopends it,/fishing competition listlists them./fishing reloadreads 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.
