RA-FishingEvent
Author: RajaAditya Website: rajaaditya.my.id Version: 1.0.0 API: Paper 1.21.x
Features
Timed Fishing Event
- Admins start an event with
/fishevent start, optionally with a duration, and stop it at any time - A bossbar shows the time left, and the start and end are broadcast to the server
- The event only runs in the worlds listed in
config.yml
Custom Fish
- Fish are defined one per file in the
fish/folder, so adding a new fish is just adding a file - Each fish has a display name, item material, custom model data, rarity, a size range in centimeters, a sell price range, and lore
- Every catch rolls its own size and price within the ranges
- The plugin ships with 17 fish, from Bluegill to Void King and Ancient Leviathan
Rarities
- Five tiers in
rarities.yml: Common, Uncommon, Rare, Epic, Legendary, each with a color and a relativechanceweight - A rarity can give the item an enchant glow
- A rarity can be announced to the whole server when someone catches it (Legendary by default)
Custom Rods
- Rods in
rods.ymlmultiply the chance of chosen rarities while held, for example a Hunter's Rod makes Rare fish more likely - Rods can carry enchantments applied directly to the item and a custom model data value for a resource pack
- Rods are given by admins with
/fishevent giverod
Selling
/fishevent sellguiopens a 54-slot sell GUI where players drop their catch for money- A "sell all" button is included
- Payment goes through Vault
- A fish list GUI shows every fish and its rarity
Dependencies
| Plugin | Required | Purpose |
|---|---|---|
| Vault | No (softdepend) | Pays players when they sell fish. Needs an economy plugin |
Installation
- Place
RA-FishingEvent.jarinto yourplugins/folder - Restart the server
- Edit
config.yml,rarities.yml,rods.yml, and the files infish/ - Run
/fishevent reload
File Structure
text
1
plugins/RA-FishingEvent/
├── config.yml # Worlds, event duration, bossbar, messages, sell GUI
├── rarities.yml # Rarity tiers and weights
├── rods.yml # Custom rods
└── fish/ # One file per fish
├── bluegill.yml
├── golden_tuna.yml
└── ...
Configuration
config.yml
yaml
1
worlds:
- world
- fishing_zone
event:
default-duration: 1800 # seconds, used when /fishevent start has no duration
bossbar:
title: "&bFishing Event &7- &f{time_left}"
color: BLUE
style: SEGMENTED_20
announce-message: "{prefix}&e{player} &7caught &f{fish} &7(&f{rarity_color}{rarity}&7)&7!"
sell-gui:
title: "&8Sell your catch"
size: 54
sell-all-slot: 49
economy:
enabled: true
rarities.yml
yaml
1
rarities:
common:
display: "COMMON"
color: "&f"
chance: 55 # relative weight, does not need to add up to 100
glow: false
announce: false
legendary:
display: "LEGENDARY"
color: "&6"
chance: 2
glow: true
announce: true # broadcast when caught
Default weights: Common 55, Uncommon 25, Rare 12, Epic 6, Legendary 2.
rods.yml
yaml
1
rods:
hunters_rod:
display-name: "&5Hunter's Rod"
material: FISHING_ROD
custom-model-data: 200002
rarity-boost: # multiplies the rarity's chance weight
uncommon: 1.3
rare: 1.8
epic: 1.5
enchants:
luck_of_the_sea: 1
lure: 2
A rarity that is not listed under rarity-boost is not changed (multiplier 1.0).
fish/golden_tuna.yml
yaml
1
id: golden_tuna
display-name: "&6Golden Tuna"
material: TROPICAL_FISH
custom-model-data: 100015
rarity: legendary
size:
min: 45
max: 120
sell-price:
min: 700
max: 1400
lore:
- "&7An extremely rare legendary fish,"
- "&7found only in the deepest waters."
Commands
The main command is /fishevent (alias /fishing).
| Command | Description | Access |
|---|---|---|
/fishevent start [duration] | Start the event | Admin |
/fishevent stop | Stop the running event | Admin |
/fishevent status | Show whether an event is running | Everyone |
/fishevent sellgui [player] | Open the sell GUI | Player, sellgui.others for others |
/fishevent fish | Open the fish list | Player |
/fishevent giverod <id> [player] | Give a custom rod | Admin |
/fishevent reload | Reload all files | Admin |
Permissions
| Permission | Default | Description |
|---|---|---|
fishevent.admin | op | Start, stop, reload, and give rods |
fishevent.sellgui | true | Open your own sell GUI |
fishevent.sellgui.others | op | Open the sell GUI for another player (useful for NPCs and the console) |
License
Developed by RajaAditya — rajaaditya.my.id