aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/elytrium/limboauth/event/PreEvent.java
diff options
context:
space:
mode:
authorPetr Ilin <hevav@hevav.dev>2022-03-28 00:50:03 +0300
committerPetr Ilin <hevav@hevav.dev>2022-03-28 00:50:03 +0300
commit334bcd43152c2650365b79813ffc4e4f4d4ae16b (patch)
treec2b45b45c988f25ae49582b747d146470a15aa4a /src/main/java/net/elytrium/limboauth/event/PreEvent.java
parent5b7b05f69414e9b1fa0f2784ce93255dd02b2cec (diff)
downloadLimboAuth-334bcd43152c2650365b79813ffc4e4f4d4ae16b.tar.gz
LimboAuth-334bcd43152c2650365b79813ffc4e4f4d4ae16b.tar.bz2
LimboAuth-334bcd43152c2650365b79813ffc4e4f4d4ae16b.zip
More events
Diffstat (limited to 'src/main/java/net/elytrium/limboauth/event/PreEvent.java')
-rw-r--r--src/main/java/net/elytrium/limboauth/event/PreEvent.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/net/elytrium/limboauth/event/PreEvent.java b/src/main/java/net/elytrium/limboauth/event/PreEvent.java
index 08f9b6b..45bb37d 100644
--- a/src/main/java/net/elytrium/limboauth/event/PreEvent.java
+++ b/src/main/java/net/elytrium/limboauth/event/PreEvent.java
@@ -18,12 +18,13 @@
package net.elytrium.limboauth.event;
import com.velocitypowered.api.proxy.Player;
+import java.util.function.Consumer;
public abstract class PreEvent extends TaskEvent {
private final Player player;
- protected PreEvent(Player player) {
- super();
+ protected PreEvent(Player player, Consumer<TaskEvent> onComplete) {
+ super(onComplete);
this.player = player;
}