RA-FishingEvent

An admin-run custom fishing event for Paper 1.21.x with 17 custom fish across five rarities, special rods with rarity boosts, a bossbar timer, a sell GUI, and Vault payouts.

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 relative chance weight
  • 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.yml multiply 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 sellgui opens 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

PluginRequiredPurpose
VaultNo (softdepend)Pays players when they sell fish. Needs an economy plugin

Installation

  1. Place RA-FishingEvent.jar into your plugins/ folder
  2. Restart the server
  3. Edit config.yml, rarities.yml, rods.yml, and the files in fish/
  4. 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).

CommandDescriptionAccess
/fishevent start [duration]Start the eventAdmin
/fishevent stopStop the running eventAdmin
/fishevent statusShow whether an event is runningEveryone
/fishevent sellgui [player]Open the sell GUIPlayer, sellgui.others for others
/fishevent fishOpen the fish listPlayer
/fishevent giverod <id> [player]Give a custom rodAdmin
/fishevent reloadReload all filesAdmin

Permissions

PermissionDefaultDescription
fishevent.adminopStart, stop, reload, and give rods
fishevent.sellguitrueOpen your own sell GUI
fishevent.sellgui.othersopOpen the sell GUI for another player (useful for NPCs and the console)

License

Developed by RajaAditya — rajaaditya.my.id