Saber-Factions/src/main/java/com/massivecraft/factions/event/FactionRelationWishEvent.java
2019-12-02 13:55:38 -05:00

50 lines
1.2 KiB
Java

package com.massivecraft.factions.event;
import com.massivecraft.factions.FPlayer;
import com.massivecraft.factions.Faction;
import com.massivecraft.factions.struct.Relation;
import org.bukkit.event.Cancellable;
public class FactionRelationWishEvent extends FactionPlayerEvent implements Cancellable {
/**
* @author FactionsUUID Team
*/
private final Faction targetFaction;
private final Relation currentRelation;
private final Relation targetRelation;
private boolean cancelled;
public FactionRelationWishEvent(FPlayer caller, Faction sender, Faction targetFaction, Relation currentRelation, Relation targetRelation) {
super(sender, caller);
this.targetFaction = targetFaction;
this.currentRelation = currentRelation;
this.targetRelation = targetRelation;
}
public Faction getTargetFaction() {
return targetFaction;
}
public Relation getCurrentRelation() {
return currentRelation;
}
public Relation getTargetRelation() {
return targetRelation;
}
@Override
public boolean isCancelled() {
return cancelled;
}
@Override
public void setCancelled(boolean cancelled) {
this.cancelled = cancelled;
}
}