Minecraft version: 1.12.2 Suggested name: FishingMessages What I want: I like to request a simple plugin that would send player chat messages of what they catch from fishing. If any messages is set to "" - no message would be send. config.yml fishMsg: "&2You caught a &e{fishitem}" fishExpMsg: "&eYou gained {exp} experiences" Requirement: it had to match what is actually caught, it cannot be different. Thank you for reading.
@Tango_ Thank you so much for doing this! For some odd reason, all items are showing up as raw fish. fish or treasures. Can you please look into this. Also, some weird behavior is happening. Like sometimes, I get a stick and it was a raw fish caught. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
No problem, after further testing I did notice that the item names were not matching. You requested to add support for the LangUtils API so I have put that in for you, make sure you have it in your plugin folder. It is added as a soft-depend so it will work with or without. The updated version can be downloaded HERE
@Tango_ The updated version is good to go! Thanks for adding the language support and fixing the bugs.
@Tango_ Could you add a new message to send when player catches air. nofishMsg: “&cYour catch got away.” This would replace fishMsg.
It was a bit harder than just checking if they caught air, because everytime they pulled the hook from the water it would say the "Your catch got away" message. Instead after 2.5 seconds from getting a bite, it checks if it was successful or not, then sends the message. You can download it HERE, be sure to regenerate a new config.
@Tango_ Your catch got away works great! Thank you for adding that. I did find another issue in this build. fishExpMsg is being fired regardless if the exp orb was dropped. I have another plug that disable exp orb from fishing and this plugin is still triggering the message. I don't know if you can fix this issue or I should simply set the fishExpMsg message to null to disable fishExpMsg?
@Tango_ I found a new error. https://pastebin.com/1uXjRDbb This is when I try to reel in non-fish entities with fishing rod.
@madtomic "Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_12_R1.entity.CraftHorse cannot be cast to org.bukkit.entity.Item" Did you reel in a horse? :7