2018-11-20 20:51:07 +01:00
|
|
|
package com.massivecraft.factions.event;
|
|
|
|
|
|
|
|
import com.massivecraft.factions.FPlayer;
|
|
|
|
import com.massivecraft.factions.Faction;
|
2019-02-11 05:57:45 +01:00
|
|
|
import org.bukkit.event.Cancellable;
|
2018-11-20 20:51:07 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Event called when a player regenerate power.
|
|
|
|
*/
|
|
|
|
public class PowerRegenEvent extends FactionPlayerEvent implements Cancellable {
|
|
|
|
|
2019-08-24 19:18:50 +02:00
|
|
|
private boolean cancelled = false;
|
2018-11-20 20:51:07 +01:00
|
|
|
|
2019-08-24 19:18:50 +02:00
|
|
|
public PowerRegenEvent(Faction f, FPlayer p) {
|
|
|
|
super(f, p);
|
|
|
|
}
|
2018-11-20 20:51:07 +01:00
|
|
|
|
2019-08-24 19:18:50 +02:00
|
|
|
@Override
|
|
|
|
public boolean isCancelled() {
|
|
|
|
return cancelled;
|
|
|
|
}
|
2018-11-20 20:51:07 +01:00
|
|
|
|
2019-08-24 19:18:50 +02:00
|
|
|
@Override
|
|
|
|
public void setCancelled(boolean c) {
|
|
|
|
this.cancelled = c;
|
|
|
|
}
|
2018-11-20 20:51:07 +01:00
|
|
|
|
|
|
|
}
|