mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-23 19:25:12 +01:00
Added nullability annotations to PlayersManager#getName(UUID)
This commit is contained in:
parent
443a7c30c1
commit
08b490c631
@ -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 "";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user