Fishing minigame with custom fish, rods, bait, progression, skills, economy & tournaments.
PhoenixFish v1.3.0
This release fixes item loss in the Sell menu, includes dozens of data-safety and stability fixes, and adds PlaceholderAPI support, a /pf reload command, tab completion, a /pf givebait command and configurable skill levels.
[!IMPORTANT] This release fixes several bugs that could cause player progress to be lost and includes the Fishing Catalog exploit fix from v1.2.3. Updating is strongly recommended for all servers, especially if you are still on v1.2.2 or older.
Related: #2
โ Compatibility
- Supported Minecraft versions: 1.21 โ 26.1.3 (Paper).
- Minecraft 26.1.3 support has been verified with this version of PhoenixFish.
- Earlier PhoenixFish versions (before 1.3.0) were not tested on 26.1.3. They may work, but this is not guaranteed. If you run 26.1.3, updating to v1.3.0 is recommended.
If you run into a problem on any version, please open an issue and include your server version.
โจ New Features
PlaceholderAPI integration
PhoenixFish now registers 22 placeholders for PlaceholderAPI, so you can use them in scoreboards, holograms, Skript and any other plugin that supports PlaceholderAPI. PlaceholderAPI is optional: without it PhoenixFish works as before, just without placeholders.
| Category | Placeholders |
|---|---|
| Progression | level, xp, xp_required, xp_progress_percent, total_xp, skillpoints |
| Economy | balance |
| Crafting | crafting_level, crafting_xp |
| Skills | skill_fast, skill_hunter, skill_double, skill_bait |
| Discovery | discovered_count, total_fish_count, discovered_percent |
| Records | pb_, sr_ |
| Fishing mode | mode |
| Tournament | tournament_active, tournament_score, tournament_leader, tournament_leader_score, tournament_time_left |
Messages
- Fixed missing message keys, which could show raw keys to players:
skills_data_error,skills_invalid,crafting_level_up,catalog_not_ready,catalog_category_empty,craft_recipes_section_not_found,db_failed_connect_mysql. - Language and prefix are now swapped together when messages are reloaded, so a reload can't show the old prefix with the new language.
- Added
reload_failedfor when a reload fails.
๐ง Internal
- Sound playback, which existed as four slightly different copies, now lives in a shared
SoundUtilsclass. - The duplicated catch-reward code of the minigame and direct-catch paths was merged into
FishRewardHelper. - Events that must run on the main thread are scheduled safely when triggered from another thread.
- The fish list is read from a snapshot, so a
fish.ymlreload can't produce a half-loaded list. TournamentManagerandTournamentTaskexpose new getters (used by the PlaceholderAPI integration).
โฌ๏ธ Upgrade Notes
- Existing
config.ymlfiles are not updated automatically. Add these new options from the defaultconfig.yml:use-sslandverify-server-certificate(MySQL users: review your SSL setup)xp-system.skill-max-level(defaults to 5 if missing)
- If you customized your language files, make sure they contain the new keys:
tournament_unknown_player,reload_started,plugin_reloaded,usage_reload,reload_failed,catch_cancelled,sell_cancelled,minigame_aborted,tournament_invalid_duration,fixall_container_error,addlevel_out_of_range,skills_data_error,skills_invalid,crafting_level_up,catalog_not_ready,catalog_category_empty,craft_recipes_section_not_found,db_failed_connect_mysql,usage_givebait,bait_not_foundandbait_given. - PlaceholderAPI users: PlaceholderAPI is now loaded before PhoenixFish, so the placeholders are registered correctly on startup.
- Restart the server after updating the jar.
This release fixes item loss in the Sell menu, includes dozens of data-safety and stability fixes, and adds PlaceholderAPI support, a /pf reload command, tab completion, a /pf givebait command and configurable skill levels.
Important
This release fixes several bugs that could cause player progress to be lost and includes the Fishing Catalog exploit fix from v1.2.3. Updating is strongly recommended for all servers, especially if you are still on v1.2.2 or older.
Related: #2
โ Compatibility
- Supported Minecraft versions: 1.21 โ 26.1.3 (Paper).
- Minecraft 26.1.3 support has been verified with this version of PhoenixFish.
- Earlier PhoenixFish versions (before 1.3.0) were not tested on 26.1.3. They may work, but this is not guaranteed. If you run 26.1.3, updating to v1.3.0 is recommended.
If you run into a problem on any version, please [open an issue](https://github.com/SudoPH/PhoenixFish/issues) and include your server version.
โจ New Features
PlaceholderAPI integration
PhoenixFish now registers 22 placeholders for [PlaceholderAPI](https://www.spigotmc.org/resources/placeholderapi.6245/), so you can use them in scoreboards, holograms, Skript and any other plugin that supports PlaceholderAPI. PlaceholderAPI is optional: without it PhoenixFish works as before, just without placeholders.
| Category | Placeholders |
|---|---|
| Progression | level, xp, xp_required, xp_progress_percent, total_xp, skillpoints |
| Economy | balance |
| Crafting | crafting_level, crafting_xp |
| Skills | skill_fast, skill_hunter, skill_double, skill_bait |
| Discovery | discovered_count, total_fish_count, discovered_percent |
| Records | pb_<fish_id>, sr_<fish_id> |
| Fishing mode | mode |
| Tournament | tournament_active, tournament_score, tournament_leader, tournament_leader_score, tournament_time_left |
Use them as %phoenixfish_<placeholder>%, for example %phoenixfish_level%. Unknown placeholders now return an empty value instead of showing the raw text.
/pf reload
Reload PhoenixFish without restarting the server.
Reloaded: config.yml, language files, fish.yml, baits.yml, rods.yml, custom_recipes.yml and the Catalog menu.
Not reloaded (on purpose): the database connection, the player cache, active tournaments and active minigames. Changes to these need a server restart.
Note
This is PhoenixFish's own reload command. Do not use the server's /reload.
Tab completion
/pf now suggests commands and arguments, based on the player's permissions:
/pf sell <TAB>โall,hand,menu/pf tournament <TAB>โaddreward,start,stop/pf toggle <TAB>โstatus(admins also seeresetand online player names)/pf giverod <TAB>โ all rod IDs fromrods.yml/pf givebait <TAB>โ all bait IDs frombaits.yml/pf addlevel <TAB>โ1,5,10,50
/pf givebait
Admins can now give custom bait directly with a command, without any extra plugin.
/phoenixfish givebait <bait-name>
Examples: /pf givebait worm, /pf givebait lucky_worm. Bait names are the keys under baits: in baits.yml.
- Works like
/pf giverod: the bait ID is not case sensitive, the item is created from your bait configuration, and if the inventory is full the bait is dropped at your feet instead of being lost. - Requires the
phoenixfish.adminpermission (OP by default). - Tab completion suggests all bait IDs from
baits.yml, and the command appears in the help menu for admins. - An unknown bait name shows a "Bait not found!" message.
Before this, bait could only be obtained through the optional PhoenixCraft add-on (reported in #2).
Configurable skill levels
The maximum level of the Skill Tree skills (Fast Catcher, Master Hunter, Double Catch, Lucky Bait) was fixed at 5. It can now be changed in config.yml:
xp-system:
skill-max-level: 5 # 1 to 10
๐ Behavior Changes
Tournament scoring is now based on rarity. Previously every catch of rarity 3 or higher gave the same 5 points, so a Rare and a Legendary were worth the same. Points are now:
Rarity Points Common 1 Uncommon 2 Rare 5 Epic 12 Legendary 25 Other plugins can now cancel catches and sales before anything happens.
FishCaughtEventis fired at the start of a catch andFishSellEventbefore the money is paid, so cancelling them really stops the reward. Players see the newcatch_cancelled/sell_cancelledmessages.Player data is saved sooner. The first autosave now runs after 60 seconds instead of 5 minutes, which shrinks the window in which a crash could lose progress.
Custom recipes can now be 1ร1, 2ร2, 2ร3 and so on, not only 3ร3. Missing rows are padded automatically.
๐ด Critical Fixes
Items and exploits
- Fishing Catalog exploit: the fix released in v1.2.3 is included in this release.
- Sell menu item loss fixed. Shift-clicking items from your inventory could place them into the empty border slots of the sell menu, and anything left there was deleted when the menu closed. Shift-click now only fills the real sell slots, and every slot is checked and returned or sold when the menu closes.
- Catalog detection no longer relies on the menu title. The Catalog was recognized by searching for the word "Page" in the inventory title, so another plugin's menu with that word could be mistaken for the Catalog and its items deleted. The Catalog now uses a dedicated inventory holder.
- Fish weight now affects the sell price in every mode. With the minigame disabled, the weight was never stored on the item, so every fish sold at weight
1.0. A 50 kg fish sold for the same price as a 1 kg fish. - Rarity of legendary fish fixed. Decimal
weightvalues infish.yml(for example Kraken0.35, Leviathan0.05, World Eater0.005) were truncated to0and then raised to1, so every legendary fish was about as common as the others.CustomFish.weightis now adouble.
Player data safety
- Progress made while data was still loading is no longer lost. If a player earned XP, money, levels, skill points or discoveries right after joining (or disconnected quickly), only the XP was carried over and the rest was dropped. Everything is now merged into the loaded data.
- Online players keep their data after a plugin reload. Their cache was left empty because no join event fires for players who are already online.
- A failed database load no longer leaves a player's session unsaved. The whole session's progress could be lost silently.
- Save errors are no longer hidden. SQLite and MySQL swallowed save errors, so on shutdown PhoenixFish reported "saved successfully" even when nothing had been written. Errors are now reported correctly.
- Shutdown order fixed. Records, the player cache and the database are now flushed in the correct order (cache first, then a batch save with a 10 second timeout, then records, then closing the database), and PhoenixFish's scheduled tasks are cancelled at the end. The latest records are no longer lost on shutdown.
- Skill upgrades are now atomic. Two quick clicks could spend only one skill point for two upgrades.
- Leveling can no longer loop forever. A very large XP or level value could overflow and freeze the server in an endless loop.
- SQLite thread safety. The shared connection is now protected against concurrent access.
- MySQL schema errors now fail fast. Previously the plugin looked active even though the database schema could not be created.
๐ Other Fixes
Commands
/pf sell allnow works. Thealloption was missing from the sell command./pf addleveland the help menu now use thephoenixfish.adminpermission instead of requiring OP./pf addlevelis range-checked. Values must be between -1000 and 1000, and levels are capped. Huge values used to overflow./pf fixnow checks thephoenixfish.usepermission./pf fixallis more robust. Players who disconnect during the scan no longer break it, a failure no longer hides the completion message, and container scan errors are reported with the newfixall_container_errormessage./pf giverodno longer risks duplicating the rod. Items that don't fit are dropped as a separate copy.- Tournament commands validate input. An invalid duration (for example
abc) used to start a 30 minute tournament silently. The duration must now be between 1 and 1440 minutes, andaddrewardranks are capped at 100.
Fishing and minigame
- A crashed minigame can no longer block a player from fishing. An error inside the minigame task left the player stuck in an "active minigame" state until they logged out. The task now cleans up after itself.
- Switching to vanilla mode during a minigame now tells the player with an Action Bar message (
minigame_aborted). - Direct catches and minigame catches now behave identically. Weight is always formatted with two decimals and
FishCaughtEventis fired in both cases. - The
level-luck-bonusdefault in code now matchesconfig.yml(0.02). Removing the key used to give a bonus 2.5 times stronger. - Fixed inventory desync after reeling in (the inventory update now runs one tick later).
- Fixed fish lore not being applied when the item's lore list was read-only.
Economy and selling
- Sold fish no longer stay in the inventory. In
sell all, items are now removed by slot, so a fish can't be both paid for and kept. - Decimal numbers always use a dot. On servers with a Turkish locale, prices and weights were shown as
5,50, which scoreboards and other plugins could not parse.
Tournaments
- Safe scoring. Tournament scores are now thread-safe, so reading them from PlaceholderAPI can no longer cause errors. Zero or negative scores are ignored.
- Offline winners. If a winner is offline when the tournament ends, their item reward is not silently skipped anymore: a warning is logged on the console.
- "Unknown Player" in tournament rewards is now translatable. It was hardcoded in Turkish. New message key:
tournament_unknown_player.
Crafting, bait and rods
- Custom recipes are no longer registered twice on reload.
- A recipe without a
display-nameno longer fails to load silently. A warning is logged instead. - Duplicate bait or rod definitions are detected. If two baits or rods share the same material and custom model data, the later one used to silently overwrite the first. A warning is now logged.
- Bait
chance-modifieris validated. Values are limited to 0.1 to 10.0, with a warning for invalid values. - Bait detection is faster (the item meta is no longer copied multiple times).
Database
Database migrations no longer hide errors. Only the expected "column already exists" case is skipped, anything else is logged as a warning, and successful migrations are logged as info.
MySQL SSL configuration fixed. The connection URL combined
useSSL=truewithrequireSSL=false, which could silently fall back to an unencrypted connection. There are now two new options inconfig.yml:use-sslverify-server-certificateBehavior truetrueSSL required, certificate verified (recommended for production) truefalseSSL required, certificate not verified (self-signed certificates) falsen/a No SSL (only for a database on the same machine)
Messages
- Fixed missing message keys, which could show raw keys to players:
skills_data_error,skills_invalid,crafting_level_up,catalog_not_ready,catalog_category_empty,craft_recipes_section_not_found,db_failed_connect_mysql. - Language and prefix are now swapped together when messages are reloaded, so a reload can't show the old prefix with the new language.
- Added
reload_failedfor when a reload fails.
๐ง Internal
- Sound playback, which existed as four slightly different copies, now lives in a shared
SoundUtilsclass. - The duplicated catch-reward code of the minigame and direct-catch paths was merged into
FishRewardHelper. - Events that must run on the main thread are scheduled safely when triggered from another thread.
- The fish list is read from a snapshot, so a
fish.ymlreload can't produce a half-loaded list. TournamentManagerandTournamentTaskexpose new getters (used by the PlaceholderAPI integration).
โฌ๏ธ Upgrade Notes
- Existing
config.ymlfiles are not updated automatically. Add these new options from the defaultconfig.yml:use-sslandverify-server-certificate(MySQL users: review your SSL setup)xp-system.skill-max-level(defaults to 5 if missing)
- If you customized your language files, make sure they contain the new keys:
tournament_unknown_player,reload_started,plugin_reloaded,usage_reload,reload_failed,catch_cancelled,sell_cancelled,minigame_aborted,tournament_invalid_duration,fixall_container_error,addlevel_out_of_range,skills_data_error,skills_invalid,crafting_level_up,catalog_not_ready,catalog_category_empty,craft_recipes_section_not_found,db_failed_connect_mysql,usage_givebait,bait_not_foundandbait_given. - PlaceholderAPI users: PlaceholderAPI is now loaded before PhoenixFish, so the placeholders are registered correctly on startup.
- Restart the server after updating the jar.