MZ Fishing plug-in [in progress]

Greetings all.
This is my first time trying to code a plug-in so any advice is greatly appreciated. I might have gotten a bit stuck.
The javascript that I have so far can be read here: Vala_Fishing.js

It is basically supposed to be a Fishing mini-game where you can catch fish of different rarities, clams with the chance to get pearls, and if very lucky a Mermaid.

If the player successfully catches a clam, there is a chance to obtain a pearl based on the "PearlChance" parameter. If the pearl is obtained, it is added to the player's inventory, and a message is displayed, indicating the pearl reward.

When a mermaid is caught, the plugin should trigger a cutscene after which the Mermaid gives the player a quest. There is room for improvement here as you don't have to catch the same mermaid each time and different mermaids could give the player different quests.

The part I think I'm mostly stuck with is getting the mermaid quest to work. >_<

P.s. Haven't used Java since Highschool 7 years ago
I'll admit I have only skimmed your plugin, but my immediate thought for handling the quest giving would be to have a plugin parameter that allows the user to designate a common event that runs when a mermaid is caught. That way they can take whatever steps they need to to have it work with their way of handling quests (some people might have other plugins that require specific plugin commands to be run, others might just need to set switches/variables).
If the player successfully catches a clam, there is a chance to obtain a pearl based on the "PearlChance" parameter. If the pearl is obtained, it is added to the player's inventory, and a message is displayed, indicating the pearl reward.
Love this!

Original thread: https://forums.rpgmakerweb.com/threads/fishing-plug-in-in-progress.161076/