DimensionFishing API
CodeMC
The plugin's API is available via CodeMC's Maven Repository. To add it to your build tool, follow the examples below:
- Gradle (Kotlin)
- Maven
build.gradle.kts
repositories {
maven("https://repo.codemc.io/repository/EvenMoreFish/")
}
// Note: The version shown here may not be the latest. Make sure to check the latest version before using!
dependencies {
compileOnly("org.evenmorefish:DimensionFishing:1.0")
}
pom.xml
<repositories>
<repository>
<id>evenmorefish</id>
<url>https://repo.codemc.io/repository/EvenMoreFish</url>
</repository>
</repositories>
<!-- Note: The version shown here may not be the latest. Make sure to check the latest version before using! -->
<dependencies>
<dependency>
<groupId>org.evenmorefish</groupId>
<artifactId>DimensionFishing</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
Events
DimensionFishing provides two events:
- LavaFishCaughtEvent
- VoidFishCaughtEvent
Both events provide the FishHook, Player, and ArmorStand the hook is attached to via the TrackedHook object. You can manually handle the rewards from there.