Files
Rankup3/src/main/java/sh/okx/rankup/ranks/requirements/DeductibleRequirement.java
T
2018-08-29 21:24:28 +01:00

25 lines
705 B
Java

package sh.okx.rankup.ranks.requirements;
import org.bukkit.entity.Player;
import sh.okx.rankup.Rankup;
public abstract class DeductibleRequirement extends Requirement {
public DeductibleRequirement(Rankup plugin, String name) {
super(plugin, name);
}
protected DeductibleRequirement(Requirement clone) {
super(clone);
}
/**
* Apply the effect of this requirement to the player.
* For money, this could be taking money away from the player.
* You can assume that <code>Requirement#check(Player)</code> has been called,
* and has returned true immediately prior to this.
*
* @param player the player to take from
*/
public abstract void apply(Player player);
}