mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-30 10:47:33 +02:00
Update dependencies
This commit is contained in:
@ -31,6 +31,8 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<nettyVersion>4.1.79.Final</nettyVersion>
|
<nettyVersion>4.1.79.Final</nettyVersion>
|
||||||
|
|
||||||
|
<maven.compiler.release>8</maven.compiler.release>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
@ -167,13 +169,6 @@
|
|||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.yaml</groupId>
|
|
||||||
<artifactId>snakeyaml</artifactId>
|
|
||||||
<version>1.33</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- PaperSpigot API for correcting user cache usage -->
|
<!-- PaperSpigot API for correcting user cache usage -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.papermc.paper</groupId>
|
<groupId>io.papermc.paper</groupId>
|
||||||
|
@ -40,6 +40,10 @@
|
|||||||
<artifactId>fastlogin.bungee</artifactId>
|
<artifactId>fastlogin.bungee</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<maven.compiler.release>8</maven.compiler.release>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<!--Represents the main plugin-->
|
<!--Represents the main plugin-->
|
||||||
<name>FastLoginBungee</name>
|
<name>FastLoginBungee</name>
|
||||||
|
|
||||||
|
@ -54,9 +54,15 @@ public class BungeeLoginSource implements LoginSource {
|
|||||||
preLoginEvent.setCancelled(true);
|
preLoginEvent.setCancelled(true);
|
||||||
|
|
||||||
if (message == null) {
|
if (message == null) {
|
||||||
preLoginEvent.setCancelReason(new ComponentBuilder("Kicked").color(ChatColor.WHITE).create());
|
preLoginEvent.setReason(
|
||||||
|
TextComponent.fromArray(
|
||||||
|
new ComponentBuilder("Kicked").color(ChatColor.WHITE).create()
|
||||||
|
));
|
||||||
} else {
|
} else {
|
||||||
preLoginEvent.setCancelReason(TextComponent.fromLegacyText(message));
|
preLoginEvent.setReason(
|
||||||
|
TextComponent.fromArray(
|
||||||
|
TextComponent.fromLegacyText(message)
|
||||||
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,7 +78,7 @@ public class BungeeLoginSource implements LoginSource {
|
|||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return this.getClass().getSimpleName() + '{'
|
return this.getClass().getSimpleName() + '{'
|
||||||
+ "connection=" + connection
|
+ "connection=" + connection
|
||||||
+ '}';
|
+ '}';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
48
core/pom.xml
48
core/pom.xml
@ -39,6 +39,13 @@
|
|||||||
<artifactId>fastlogin.core</artifactId>
|
<artifactId>fastlogin.core</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<maven.compiler.source>8</maven.compiler.source>
|
||||||
|
<maven.compiler.target>8</maven.compiler.target>
|
||||||
|
<!-- Make Java 21 test method available in this multi-release project: Caution of breaking older systems -->
|
||||||
|
<maven.compiler.release>21</maven.compiler.release>
|
||||||
|
</properties>
|
||||||
|
|
||||||
<name>FastLoginCore</name>
|
<name>FastLoginCore</name>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
@ -142,7 +149,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.md-5</groupId>
|
<groupId>net.md-5</groupId>
|
||||||
<artifactId>bungeecord-config</artifactId>
|
<artifactId>bungeecord-config</artifactId>
|
||||||
<version>1.19-R0.1-SNAPSHOT</version>
|
<version>1.20-R0.2-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!--Floodgate for Xbox Live Authentication-->
|
<!--Floodgate for Xbox Live Authentication-->
|
||||||
@ -191,44 +198,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.games647</groupId>
|
<groupId>com.github.games647</groupId>
|
||||||
<artifactId>craftapi</artifactId>
|
<artifactId>craftapi</artifactId>
|
||||||
<version>0.7</version>
|
<version>0.8</version>
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- APIs we can use because they are available in all platforms (Spigot, Bungee, Velocity) -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.google.guava</groupId>
|
|
||||||
<artifactId>guava</artifactId>
|
|
||||||
<!-- Old version for velocity -->
|
|
||||||
<version>25.1-jre</version>
|
|
||||||
<!-- Exclude compile time dependencies not marked as such on upstream -->
|
|
||||||
<exclusions>
|
|
||||||
<exclusion>
|
|
||||||
<groupId>com.google.code.findbugs</groupId>
|
|
||||||
<artifactId>jsr305</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
<exclusion>
|
|
||||||
<groupId>org.checkerframework</groupId>
|
|
||||||
<artifactId>checker-qual</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
<exclusion>
|
|
||||||
<groupId>com.google.errorprone</groupId>
|
|
||||||
<artifactId>error_prone_annotations</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
<exclusion>
|
|
||||||
<groupId>com.google.j2objc</groupId>
|
|
||||||
<artifactId>j2objc-annotations</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
<exclusion>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>animal-sniffer-annotations</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
</exclusions>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.google.code.gson</groupId>
|
|
||||||
<artifactId>gson</artifactId>
|
|
||||||
<version>2.10.1</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -97,10 +97,15 @@ public class StoredProfile extends Profile {
|
|||||||
this.id = uniqueId;
|
this.id = uniqueId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public synchronized boolean isPremium() {
|
public synchronized boolean isPremium() {
|
||||||
return premium;
|
return premium;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public synchronized boolean isOnlinemodePreferred() {
|
||||||
|
return premium;
|
||||||
|
}
|
||||||
|
|
||||||
public synchronized void setPremium(boolean premium) {
|
public synchronized void setPremium(boolean premium) {
|
||||||
this.premium = premium;
|
this.premium = premium;
|
||||||
}
|
}
|
||||||
|
2
pom.xml
2
pom.xml
@ -48,7 +48,7 @@
|
|||||||
<!-- 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>
|
||||||
|
|
||||||
<java.version>8</java.version>
|
<maven.compiler.release>8</maven.compiler.release>
|
||||||
|
|
||||||
<lombook.version>1.18.32</lombook.version>
|
<lombook.version>1.18.32</lombook.version>
|
||||||
|
|
||||||
|
@ -44,10 +44,7 @@
|
|||||||
<name>FastLoginVelocity</name>
|
<name>FastLoginVelocity</name>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>11</java.version>
|
<maven.compiler.release>11</maven.compiler.release>
|
||||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
|
||||||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
|
||||||
<maven.compiler.release>${java.version}</maven.compiler.release>
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
Reference in New Issue
Block a user