2022-01-12 20:12:16 -06:00
|
|
|
package noppes.npcs.scripted.event;
|
|
|
|
|
|
2022-11-15 15:25:53 -05:00
|
|
|
import noppes.npcs.api.handler.data.IFaction;
|
|
|
|
|
import noppes.npcs.api.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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|