2022-01-12 20:12:16 -06:00
|
|
|
package noppes.npcs.scripted.event;
|
|
|
|
|
|
2022-05-11 16:43:14 -05:00
|
|
|
import noppes.npcs.scripted.interfaces.handler.data.IFaction;
|
|
|
|
|
import noppes.npcs.scripted.interfaces.entity.IPlayer;
|
2022-01-12 20:12:16 -06:00
|
|
|
|
|
|
|
|
public class FactionEvent extends CustomNPCsEvent {
|
|
|
|
|
public final IFaction faction;
|
|
|
|
|
public final IPlayer player;
|
|
|
|
|
|
|
|
|
|
public FactionEvent(IPlayer player, IFaction faction){
|
|
|
|
|
this.faction = faction;
|
|
|
|
|
this.player = player;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class FactionPoints extends FactionEvent {
|
|
|
|
|
public boolean decrease;
|
|
|
|
|
public int points;
|
|
|
|
|
|
|
|
|
|
public FactionPoints(IPlayer player, IFaction faction, boolean decrease, int points) {
|
|
|
|
|
super(player, faction);
|
|
|
|
|
this.decrease = decrease;
|
|
|
|
|
this.points = points;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|