RegisteredServer and ProxyServer now implement MultiAudience
This commit is contained in:
@@ -17,13 +17,14 @@ import java.net.InetSocketAddress;
|
||||
import java.util.Collection;
|
||||
import java.util.Optional;
|
||||
import java.util.UUID;
|
||||
import net.kyori.adventure.audience.MultiAudience;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
|
||||
/**
|
||||
* Provides an interface to a Minecraft server proxy.
|
||||
*/
|
||||
public interface ProxyServer extends ProxyAudience {
|
||||
public interface ProxyServer extends MultiAudience {
|
||||
|
||||
/**
|
||||
* Retrieves the player currently connected to this proxy by their Minecraft username. The search
|
||||
|
@@ -5,13 +5,14 @@ import com.velocitypowered.api.proxy.ProxyAudience;
|
||||
import com.velocitypowered.api.proxy.messages.ChannelMessageSink;
|
||||
import java.util.Collection;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import net.kyori.adventure.audience.MultiAudience;
|
||||
|
||||
/**
|
||||
* Represents a server that has been registered with the proxy. The {@code Audience} associated with
|
||||
* a {@code RegisteredServer} represent all players on the server connected to this proxy and do not
|
||||
* interact with the server in any way.
|
||||
*/
|
||||
public interface RegisteredServer extends ChannelMessageSink, ProxyAudience {
|
||||
public interface RegisteredServer extends ChannelMessageSink, MultiAudience {
|
||||
|
||||
/**
|
||||
* Returns the {@link ServerInfo} for this server.
|
||||
|
Reference in New Issue
Block a user