Added nullability annotations to PlayersManager#getName(UUID)

This commit is contained in:
Florian CUNY 2019-05-26 21:58:24 +02:00
parent 443a7c30c1
commit 08b490c631

View File

@ -265,7 +265,8 @@ public class PlayersManager {
* @param playerUUID - the player's UUID
* @return String - playerName, empty string if UUID is null
*/
public String getName(UUID playerUUID) {
@NonNull
public String getName(@Nullable UUID playerUUID) {
if (playerUUID == null) {
return "";
}