com.sucy.skill.dynamic.trigger.FishingFailTrigger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proskillapi Show documentation
Show all versions of proskillapi Show documentation
A Minecraft Bukkit plugin aiming to provide an easy code API and skill editor for all server owners to
create unique and fully custom classes and skills.
package com.sucy.skill.dynamic.trigger;
import com.sucy.skill.api.Settings;
import org.bukkit.event.player.PlayerFishEvent;
public class FishingFailTrigger extends FishingTrigger {
/**
* {@inheritDoc}
*/
@Override
public String getKey() {
return "FISHING_FAIL";
}
/**
* {@inheritDoc}
*/
@Override
public boolean shouldTrigger(PlayerFishEvent event, int level, Settings settings) {
if (event.getState() == PlayerFishEvent.State.FAILED_ATTEMPT) {
return true;
}
return false;
}
}