mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-30 14:43:49 +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
|
* @param playerUUID - the player's UUID
|
||||||
* @return String - playerName, empty string if UUID is null
|
* @return String - playerName, empty string if UUID is null
|
||||||
*/
|
*/
|
||||||
public String getName(UUID playerUUID) {
|
@NonNull
|
||||||
|
public String getName(@Nullable UUID playerUUID) {
|
||||||
if (playerUUID == null) {
|
if (playerUUID == null) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user