mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 12:15:11 +00:00
Added quest start, complete, and turnin events, and a faction points event to scripted player events.
This commit is contained in:
1 parent
8919a182c5
commit
b024f800ae
9 files changed
+152
-20
No files matched your search
@@ -0,0 +1,25 @@
|
||||
package noppes.npcs.scripted.event;
|
||||
|
||||
import noppes.npcs.scripted.handler.data.IFaction;
|
||||
import noppes.npcs.scripted.interfaces.IPlayer;
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user