mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-30 10:47:33 +02:00
Fix force login events being sync instead of async (Fixes #278)
This commit is contained in:
@ -115,8 +115,8 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.ProtocolSupport</groupId>
|
<groupId>com.github.ProtocolSupport</groupId>
|
||||||
<artifactId>ProtocolSupport</artifactId>
|
<artifactId>ProtocolSupport</artifactId>
|
||||||
<!--4.29.dev-->
|
<!--4.29.dev after commit about API improvements-->
|
||||||
<version>a030da05d5</version>
|
<version>3a80c661fe</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
@ -124,7 +124,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>me.clip</groupId>
|
<groupId>me.clip</groupId>
|
||||||
<artifactId>placeholderapi</artifactId>
|
<artifactId>placeholderapi</artifactId>
|
||||||
<version>2.8.5</version>
|
<version>2.10.3</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
|
@ -15,6 +15,8 @@ public class BukkitFastLoginAutoLoginEvent extends Event implements FastLoginAut
|
|||||||
private boolean cancelled;
|
private boolean cancelled;
|
||||||
|
|
||||||
public BukkitFastLoginAutoLoginEvent(LoginSession session, StoredProfile profile) {
|
public BukkitFastLoginAutoLoginEvent(LoginSession session, StoredProfile profile) {
|
||||||
|
super(true);
|
||||||
|
|
||||||
this.session = session;
|
this.session = session;
|
||||||
this.profile = profile;
|
this.profile = profile;
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ public class BukkitFastLoginPreLoginEvent extends Event implements FastLoginPreL
|
|||||||
|
|
||||||
public BukkitFastLoginPreLoginEvent(String username, LoginSource source, StoredProfile profile) {
|
public BukkitFastLoginPreLoginEvent(String username, LoginSource source, StoredProfile profile) {
|
||||||
super(true);
|
super(true);
|
||||||
|
|
||||||
this.username = username;
|
this.username = username;
|
||||||
this.source = source;
|
this.source = source;
|
||||||
this.profile = profile;
|
this.profile = profile;
|
||||||
|
5
pom.xml
5
pom.xml
@ -21,8 +21,9 @@
|
|||||||
<!-- Set default for non-git clones -->
|
<!-- Set default for non-git clones -->
|
||||||
<git.commit.id>Unknown</git.commit.id>
|
<git.commit.id>Unknown</git.commit.id>
|
||||||
|
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<java.version>1.8</java.version>
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||||
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
Reference in New Issue
Block a user