Package valorless.rarespawns.events
Class FishEvent
java.lang.Object
valorless.rarespawns.events.FishEvent
- All Implemented Interfaces:
org.bukkit.event.Listener
Listener for fishing events involving rare items.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidinit()Registers the FishEvent listener with the Bukkit plugin manager.voidonPlayerFish(org.bukkit.event.player.PlayerFishEvent event) Handles the PlayerFishEvent, customizing fishing mechanics and sounds if the player is using a rare item.
-
Constructor Details
-
FishEvent
public FishEvent()
-
-
Method Details
-
init
public static void init()Registers the FishEvent listener with the Bukkit plugin manager. -
onPlayerFish
public void onPlayerFish(org.bukkit.event.player.PlayerFishEvent event) Handles the PlayerFishEvent, customizing fishing mechanics and sounds if the player is using a rare item.- Parameters:
event- The PlayerFishEvent triggered by fishing actions.
-