Saber-Factions/src/main/java/com/massivecraft/factions/event/PowerRegenEvent.java

38 lines
799 B
Java
Raw Normal View History

package com.massivecraft.factions.event;
import com.massivecraft.factions.FPlayer;
import com.massivecraft.factions.Faction;
import org.bukkit.event.Cancellable;
/**
* Event called when a player regenerate power.
*/
public class PowerRegenEvent extends FactionPlayerEvent implements Cancellable {
private boolean cancelled = false;
private double delta;
public PowerRegenEvent(Faction f, FPlayer p, double delta) {
super(f, p);
this.delta = delta;
}
public double getDelta() {
return delta;
2019-11-01 19:15:18 +01:00
}
public void setDelta(double delta) {
this.delta = delta;
2020-03-25 05:56:39 +01:00
}
2019-11-01 19:15:18 +01:00
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean c) {
this.cancelled = c;
}
}