From cffc6d0a81af206d67ec0bd443c893f475c31e2d Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Wed, 14 Oct 2020 13:58:28 -0400 Subject: [PATCH] Fix Checkstyle error --- api/build.gradle | 4 ++-- .../proxy/connection/backend/BungeeCordMessageResponder.java | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/api/build.gradle b/api/build.gradle index 25142d71a..a2c07338a 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -79,8 +79,8 @@ javadoc { 'http://www.slf4j.org/apidocs/', 'https://google.github.io/guava/releases/25.1-jre/api/docs/', 'https://google.github.io/guice/api-docs/4.2/javadoc/', - 'https://jd.kyori.net/text-api/3.0.0/', - 'https://docs.oracle.com/javase/8/docs/api/' + 'https://docs.oracle.com/javase/8/docs/api/', + 'https://jd.adventure.kyori.net/api/4.0.0/' ) // Disable the crazy super-strict doclint tool in Java 8 diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/backend/BungeeCordMessageResponder.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/backend/BungeeCordMessageResponder.java index 92c4b18ab..e8896cf63 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/backend/BungeeCordMessageResponder.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/backend/BungeeCordMessageResponder.java @@ -158,7 +158,8 @@ class BungeeCordMessageResponder { if (target.equals("ALL")) { proxy.sendMessage(Identity.nil(), messageComponent); } else { - proxy.getPlayer(target).ifPresent(player -> player.sendMessage(Identity.nil(), messageComponent)); + proxy.getPlayer(target).ifPresent(player -> player.sendMessage(Identity.nil(), + messageComponent)); } }