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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user