mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
CommandSource#connection should return GeyserConnection instead of Connection
This commit is contained in:
parent
83c131eb12
commit
6f6be87c47
1 changed files with 4 additions and 3 deletions
|
|
@ -27,7 +27,7 @@ package org.geysermc.geyser.api.command;
|
|||
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.geysermc.api.connection.Connection;
|
||||
import org.geysermc.geyser.api.connection.GeyserConnection;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
|
|
@ -74,10 +74,11 @@ public interface CommandSource {
|
|||
@Nullable UUID playerUuid();
|
||||
|
||||
/**
|
||||
* @return a Connection if this source represents a Bedrock player that is connected
|
||||
* @return a GeyserConnection if this source represents a Bedrock player that is connected
|
||||
* to this Geyser instance, otherwise null
|
||||
*/
|
||||
@Nullable Connection connection();
|
||||
@Nullable
|
||||
GeyserConnection connection();
|
||||
|
||||
/**
|
||||
* Returns the locale of the command source.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue