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:
@@ -15,7 +15,8 @@ dependencies {
|
||||
api("com.nukkitx.fastutil", "fastutil-short-object-maps", Versions.fastutilVersion)
|
||||
api("com.nukkitx.fastutil", "fastutil-int-object-maps", Versions.fastutilVersion)
|
||||
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)
|
||||
}
|
||||
|
||||
|
||||
@@ -102,10 +102,10 @@ public class PlayerAudienceArgument {
|
||||
CommandUtil commandUtil = context.get("CommandUtil");
|
||||
|
||||
boolean quoted = input.remainingInput().startsWith("\"");
|
||||
List<Suggestion> suggestions = new ArrayList<Suggestion>();
|
||||
List<Suggestion> suggestions = new ArrayList<>();
|
||||
for (final String player : commandUtil.getOnlineUsernames(limitTo)) {
|
||||
suggestions.add(
|
||||
Suggestion.simple(BrigadierUtils.escapeIfRequired(player, quoted)));
|
||||
Suggestion.suggestion(BrigadierUtils.escapeIfRequired(player, quoted)));
|
||||
}
|
||||
return CompletableFuture.completedFuture(suggestions);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user