Skip to content

Commit

Permalink
CommandSource#connection should return GeyserConnection instead of Co…
Browse files Browse the repository at this point in the history
…nnection
  • Loading branch information
Konicai committed May 9, 2024
1 parent 83c131e commit 6f6be87
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

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;

Expand Down Expand Up @@ -74,10 +74,11 @@ default void sendMessage(String[] messages) {
@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.
Expand Down

0 comments on commit 6f6be87

Please sign in to comment.