aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/elytrium/limboauth/event/PostEvent.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/elytrium/limboauth/event/PostEvent.java')
-rw-r--r--src/main/java/net/elytrium/limboauth/event/PostEvent.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/net/elytrium/limboauth/event/PostEvent.java b/src/main/java/net/elytrium/limboauth/event/PostEvent.java
index e86fbcf..68932ef 100644
--- a/src/main/java/net/elytrium/limboauth/event/PostEvent.java
+++ b/src/main/java/net/elytrium/limboauth/event/PostEvent.java
@@ -17,6 +17,7 @@
package net.elytrium.limboauth.event;
+import java.util.function.Consumer;
import net.elytrium.limboapi.api.player.LimboPlayer;
import net.elytrium.limboauth.model.RegisteredPlayer;
@@ -25,8 +26,8 @@ public abstract class PostEvent extends TaskEvent {
private final LimboPlayer player;
private final RegisteredPlayer playerInfo;
- protected PostEvent(LimboPlayer player, RegisteredPlayer playerInfo) {
- super();
+ protected PostEvent(LimboPlayer player, RegisteredPlayer playerInfo, Consumer<TaskEvent> onComplete) {
+ super(onComplete);
this.player = player;
this.playerInfo = playerInfo;