1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-19 14:59:20 +00:00

Update cloud (#505)

This commit is contained in:
chris
2024-05-06 12:04:58 +02:00
committed by GitHub
parent a44e3a5df8
commit 41c42ed3bb
4 changed files with 7 additions and 7 deletions

View File

@@ -33,7 +33,8 @@ object Versions {
const val guiceVersion = "6.0.0" const val guiceVersion = "6.0.0"
const val nettyVersion = "4.1.49.Final" const val nettyVersion = "4.1.49.Final"
const val snakeyamlVersion = "1.28" const val snakeyamlVersion = "1.28"
const val cloudVersion = "2.0.0-beta.2" // TODO move to cloud release once those have 1.20.5 support
const val cloudVersion = "2.0.0-20240503.183307-62" // for cloud-minecraft
const val bstatsVersion = "3.0.2" const val bstatsVersion = "3.0.2"
const val javaWebsocketVersion = "1.5.2" const val javaWebsocketVersion = "1.5.2"

View File

@@ -15,7 +15,8 @@ dependencies {
api("com.nukkitx.fastutil", "fastutil-short-object-maps", Versions.fastutilVersion) api("com.nukkitx.fastutil", "fastutil-short-object-maps", Versions.fastutilVersion)
api("com.nukkitx.fastutil", "fastutil-int-object-maps", Versions.fastutilVersion) api("com.nukkitx.fastutil", "fastutil-int-object-maps", Versions.fastutilVersion)
api("org.java-websocket", "Java-WebSocket", Versions.javaWebsocketVersion) api("org.java-websocket", "Java-WebSocket", Versions.javaWebsocketVersion)
api("org.incendo", "cloud-core", Versions.cloudVersion) // TODO move to cloud release
api("org.incendo", "cloud-core", "2.0.0-20240503.181645-64")
api("org.bstats", "bstats-base", Versions.bstatsVersion) api("org.bstats", "bstats-base", Versions.bstatsVersion)
} }

View File

@@ -102,10 +102,10 @@ public class PlayerAudienceArgument {
CommandUtil commandUtil = context.get("CommandUtil"); CommandUtil commandUtil = context.get("CommandUtil");
boolean quoted = input.remainingInput().startsWith("\""); boolean quoted = input.remainingInput().startsWith("\"");
List<Suggestion> suggestions = new ArrayList<Suggestion>(); List<Suggestion> suggestions = new ArrayList<>();
for (final String player : commandUtil.getOnlineUsernames(limitTo)) { for (final String player : commandUtil.getOnlineUsernames(limitTo)) {
suggestions.add( suggestions.add(
Suggestion.simple(BrigadierUtils.escapeIfRequired(player, quoted))); Suggestion.suggestion(BrigadierUtils.escapeIfRequired(player, quoted)));
} }
return CompletableFuture.completedFuture(suggestions); return CompletableFuture.completedFuture(suggestions);
}); });

View File

@@ -13,9 +13,7 @@ indra {
dependencies { dependencies {
api(projects.core) api(projects.core)
// TODO move to release once cloud-paper releases for 1.20.5 implementation("org.incendo", "cloud-paper", Versions.cloudVersion)
// https://repo.papermc.io/#browse/browse:maven-public:org%2Fincendo%2Fcloud-paper%2F2.0.0-SNAPSHOT%2F2.0.0-20240427.220226-58
implementation("org.incendo", "cloud-paper", "2.0.0-20240427.220226-58")
// hack to make pre 1.12 work // hack to make pre 1.12 work
implementation("com.google.guava", "guava", guavaVersion) implementation("com.google.guava", "guava", guavaVersion)