Fix compile error

While we're at it, change the newly-introduced shutdown API to use a generic Adventure component instead.
This commit is contained in:
Andrew Steinborn
2020-08-30 07:09:52 -04:00
parent fe0d31b0f0
commit 764c8ed3e5
2 changed files with 7 additions and 9 deletions

View File

@@ -18,8 +18,6 @@ import java.util.Collection;
import java.util.Optional;
import java.util.UUID;
import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.TextComponent;
import org.checkerframework.checker.nullness.qual.NonNull;
/**
@@ -32,7 +30,7 @@ public interface ProxyServer extends Audience {
*
* @param reason message to kick online players with
*/
void shutdown(TextComponent reason);
void shutdown(net.kyori.adventure.text.Component reason);
/**
* Shuts down the proxy, kicking players with the default reason.