3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-06 00:00:47 +01:00

Clean up after the merge.

Dieser Commit ist enthalten in:
Andrew Steinborn 2023-10-27 16:51:53 -04:00
Ursprung a037ab4956
Commit 0c7b8081d5
5 geänderte Dateien mit 15 neuen und 23 gelöschten Zeilen

Datei anzeigen

@ -27,13 +27,10 @@ val configurateVersion: String by project.extra
val caffeineVersion: String by project.extra val caffeineVersion: String by project.extra
dependencies { dependencies {
api("com.google.code.gson:gson:$gsonVersion") api(libs.gson)
api("com.google.guava:guava:$guavaVersion") api(libs.guava)
// DEPRECATED: Will be removed in Velocity Polymer api(platform(libs.adventure.bom))
api("com.moandjiezana.toml:toml4j:0.7.2")
api(platform("net.kyori:adventure-bom:${adventureVersion}"))
api("net.kyori:adventure-api") api("net.kyori:adventure-api")
api("net.kyori:adventure-text-serializer-gson") api("net.kyori:adventure-text-serializer-gson")
api("net.kyori:adventure-text-serializer-legacy") api("net.kyori:adventure-text-serializer-legacy")
@ -42,16 +39,12 @@ dependencies {
api("net.kyori:adventure-text-logger-slf4j") api("net.kyori:adventure-text-logger-slf4j")
api("net.kyori:adventure-text-serializer-ansi") api("net.kyori:adventure-text-serializer-ansi")
api("org.slf4j:slf4j-api:$slf4jVersion") api(libs.slf4j)
api("com.google.inject:guice:$guiceVersion") api(libs.guice)
api("org.checkerframework:checker-qual:${checkerFrameworkVersion}") api(libs.checker.qual)
api("com.velocitypowered:velocity-brigadier:1.0.0-SNAPSHOT") api(libs.brigadier)
api(libs.bundles.configurate)
api("org.spongepowered:configurate-hocon:${configurateVersion}") api(libs.caffeine)
api("org.spongepowered:configurate-yaml:${configurateVersion}")
api("org.spongepowered:configurate-gson:${configurateVersion}")
api("com.github.ben-manes.caffeine:caffeine:$caffeineVersion")
} }
tasks { tasks {

Datei anzeigen

@ -22,7 +22,7 @@ tasks.withType<Jar> {
"${project.version} (git-$currentShortRevision-b$buildNumber)" "${project.version} (git-$currentShortRevision-b$buildNumber)"
} }
} else { } else {
archiveVersion.get() "${project.version}"
} }
attributes["Implementation-Version"] = velocityHumanVersion attributes["Implementation-Version"] = velocityHumanVersion
} }

Datei anzeigen

@ -1,5 +1,5 @@
[versions] [versions]
configurate = "3.7.3" configurate = "4.1.2"
flare = "2.0.1" flare = "2.0.1"
log4j = "2.20.0" log4j = "2.20.0"
netty = "4.1.100.Final" netty = "4.1.100.Final"
@ -31,7 +31,7 @@ jline = "org.jline:jline-terminal-jansi:3.23.0"
jopt = "net.sf.jopt-simple:jopt-simple:5.0.4" jopt = "net.sf.jopt-simple:jopt-simple:5.0.4"
junit = "org.junit.jupiter:junit-jupiter:5.9.0" junit = "org.junit.jupiter:junit-jupiter:5.9.0"
kyori-ansi = "net.kyori:ansi:1.0.3" kyori-ansi = "net.kyori:ansi:1.0.3"
guava = "com.google.guava:guava:25.1-jre" guava = "com.google.guava:guava:32.1.3-jre"
gson = "com.google.code.gson:gson:2.10.1" gson = "com.google.code.gson:gson:2.10.1"
guice = "com.google.inject:guice:6.0.0" guice = "com.google.inject:guice:6.0.0"
lmbda = "org.lanternpowered:lmbda:2.0.0" lmbda = "org.lanternpowered:lmbda:2.0.0"

Datei anzeigen

@ -107,9 +107,9 @@ public class VelocityRegisteredServer implements RegisteredServer, ForwardingAud
throw new IllegalStateException("No Velocity proxy instance available"); throw new IllegalStateException("No Velocity proxy instance available");
} }
CompletableFuture<ServerPing> pingFuture = new CompletableFuture<>(); CompletableFuture<ServerPing> pingFuture = new CompletableFuture<>();
server.createBootstrap(loop, serverInfo.getAddress()).handler(new ChannelInitializer<Channel>() { server.createBootstrap(loop, serverInfo.getAddress()).handler(new ChannelInitializer<>() {
@Override @Override
protected void initChannel(Channel ch) throws Exception { protected void initChannel(Channel ch) {
ch.pipeline().addLast(FRAME_DECODER, new MinecraftVarintFrameDecoder()) ch.pipeline().addLast(FRAME_DECODER, new MinecraftVarintFrameDecoder())
.addLast(READ_TIMEOUT, new ReadTimeoutHandler( .addLast(READ_TIMEOUT, new ReadTimeoutHandler(
pingOptions.getTimeout() == 0 pingOptions.getTimeout() == 0

Datei anzeigen

@ -24,7 +24,6 @@ import com.velocitypowered.api.proxy.player.TabListEntry;
import com.velocitypowered.api.util.GameProfile; import com.velocitypowered.api.util.GameProfile;
import com.velocitypowered.proxy.connection.MinecraftConnection; import com.velocitypowered.proxy.connection.MinecraftConnection;
import com.velocitypowered.proxy.connection.client.ConnectedPlayer; import com.velocitypowered.proxy.connection.client.ConnectedPlayer;
import com.velocitypowered.proxy.console.VelocityConsole;
import com.velocitypowered.proxy.protocol.packet.RemovePlayerInfo; import com.velocitypowered.proxy.protocol.packet.RemovePlayerInfo;
import com.velocitypowered.proxy.protocol.packet.UpsertPlayerInfo; import com.velocitypowered.proxy.protocol.packet.UpsertPlayerInfo;
import com.velocitypowered.proxy.protocol.packet.chat.RemoteChatSession; import com.velocitypowered.proxy.protocol.packet.chat.RemoteChatSession;
@ -48,7 +47,7 @@ import org.checkerframework.checker.nullness.qual.Nullable;
*/ */
public class VelocityTabList implements InternalTabList { public class VelocityTabList implements InternalTabList {
private static final Logger logger = LogManager.getLogger(VelocityConsole.class); private static final Logger logger = LogManager.getLogger(VelocityTabList.class);
private final ConnectedPlayer player; private final ConnectedPlayer player;
private final MinecraftConnection connection; private final MinecraftConnection connection;
private final Map<UUID, VelocityTabListEntry> entries; private final Map<UUID, VelocityTabListEntry> entries;