public interface UserManager
Modifier and Type | Interface and Description |
---|---|
static class |
UserManager.TopData |
static class |
UserManager.TopEntry |
Modifier and Type | Method and Description |
---|---|
User |
get(org.bukkit.entity.Player player)
Calls
get(UUID) with Entity.getUniqueId() . |
User |
get(java.lang.String name)
Gets a
User with the given name. |
User |
get(java.util.UUID uuid)
Gets a
User with the given UUID . |
UserManager.TopEntry |
getTopLosses()
Gets the top losses.
|
UserManager.TopEntry |
getTopRatings()
Gets the top rating for no kit.
|
UserManager.TopEntry |
getTopRatings(Kit kit)
Gets the top rating for the given
Kit . |
UserManager.TopEntry |
getTopWins()
Gets the top wins.
|
boolean |
isLoaded()
Whether or not had all users completed loading to the memory.
|
boolean isLoaded()
@Nullable User get(@NotNull java.lang.String name)
User
with the given name.
Note: If isLoaded()
returns false, this may return null even if userdata file exists.name
- Name of the user to get.User
with the given name or null if not exists.@Nullable User get(@NotNull java.util.UUID uuid)
User
with the given UUID
.
Note: If isLoaded()
returns false, this may return null even if userdata file exists.uuid
- UUID
of the user to get.User
with the given UUID
or null if not exists.@Nullable User get(@NotNull org.bukkit.entity.Player player)
get(UUID)
with Entity.getUniqueId()
.get(UUID)
@Nullable UserManager.TopEntry getTopWins()
UserManager.TopEntry
containing name and wins of the top 10 Wins or null if the leaderboard has not loaded yet.@Nullable UserManager.TopEntry getTopLosses()
UserManager.TopEntry
containing name and losses of the top 10 Losses or null if the leaderboard has not loaded yet.@Nullable UserManager.TopEntry getTopRatings()
UserManager.TopEntry
containing name and rating of the top 10 Rating for no kit or null if the leaderboard has not loaded yet.@Nullable UserManager.TopEntry getTopRatings(@NotNull Kit kit)
Kit
. thread-safe!kit
- Kit
to get UserManager.TopEntry
.UserManager.TopEntry
containing name and rating of the top 10 Rating for kit or null if the leaderboard has not loaded yet.