From 208d124fea79302c3e090e6f79131b51d147c7f0 Mon Sep 17 00:00:00 2001 From: Vankka Date: Sat, 31 Jul 2021 01:25:20 +0300 Subject: [PATCH] Nullability issue with IPlayer & IOfflinePlayer --- .../src/main/java/com/discordsrv/common/player/IPlayer.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/src/main/java/com/discordsrv/common/player/IPlayer.java b/common/src/main/java/com/discordsrv/common/player/IPlayer.java index f3f6a6af..946e5bb8 100644 --- a/common/src/main/java/com/discordsrv/common/player/IPlayer.java +++ b/common/src/main/java/com/discordsrv/common/player/IPlayer.java @@ -28,6 +28,11 @@ import java.util.UUID; public interface IPlayer extends DiscordSRVPlayer, IOfflinePlayer, ICommandSender { + @SuppressWarnings("NullableProblems") // IOfflinePlayer != IPlayer + @Override + @NotNull + String getUsername(); + @Override @ApiStatus.NonExtendable default @NotNull UUID uuid() {