Fix possible error with sending plugin message without a player name

This commit is contained in:
ajgeiss0702
2023-03-11 10:25:49 -07:00
parent 5343a31683
commit a0f5903862
3 changed files with 8 additions and 3 deletions
@@ -3,6 +3,7 @@ package us.ajg0702.queue.api.players;
import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.text.Component;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import us.ajg0702.queue.api.server.AdaptedServer;
import us.ajg0702.queue.api.util.Handle;
@@ -76,7 +77,7 @@ public interface AdaptedPlayer extends Handle, Audience {
* Gets the player's username
* @return the player's username
*/
String getName();
@Nullable String getName();
/**
* Kick a player from the proxy