mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 10:19:08 +00:00
Added dialog events to scripted player events
This commit is contained in:
1 parent
b024f800ae
commit
04def38b63
11 files changed
+102
-18
No files matched your search
@@ -0,0 +1,32 @@
|
||||
package noppes.npcs.scripted.event;
|
||||
|
||||
import noppes.npcs.scripted.handler.data.IDialog;
|
||||
import noppes.npcs.scripted.interfaces.IPlayer;
|
||||
|
||||
public class DialogEvent extends CustomNPCsEvent {
|
||||
public final IDialog dialog;
|
||||
public final IPlayer player;
|
||||
|
||||
public DialogEvent(IPlayer player, IDialog dialog){
|
||||
this.dialog = dialog;
|
||||
this.player = player;
|
||||
}
|
||||
|
||||
public static class DialogOpen extends DialogEvent {
|
||||
public DialogOpen(IPlayer player, IDialog dialog) {
|
||||
super(player, dialog);
|
||||
}
|
||||
}
|
||||
|
||||
public static class DialogOption extends DialogEvent {
|
||||
public DialogOption(IPlayer player, IDialog dialog) {
|
||||
super(player, dialog);
|
||||
}
|
||||
}
|
||||
|
||||
public static class DialogClosed extends DialogEvent {
|
||||
public DialogClosed(IPlayer player, IDialog dialog){
|
||||
super(player, dialog);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user