mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-03-02 11:12:28 +01:00
Added #getUser(UUID) in PlayersManager
I didn't find a real use right now, but that might be helpful for an addon etc
This commit is contained in:
parent
c693c32f30
commit
04db135f60
@ -420,12 +420,21 @@ public class PlayersManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* Tries to get the user from this name
|
||||
* Tries to get the user from his name
|
||||
* @param name - name
|
||||
* @return user - user
|
||||
*/
|
||||
public User getUser(String name) {
|
||||
return User.getInstance(getUUID(name));
|
||||
return getUser(getUUID(name));
|
||||
}
|
||||
|
||||
/**
|
||||
* Tries to get the user from his UUID
|
||||
* @param uuid - UUID
|
||||
* @return user - user
|
||||
*/
|
||||
public User getUser(UUID uuid) {
|
||||
return User.getInstance(uuid);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user