public final class UuidListFile extends JsonListFile
JsonListFile.BaseEntryentries| Constructor and Description |
|---|
UuidListFile(File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.bukkit.OfflinePlayer player)
If the given player is not already on this list, adds that player and saves the change to
disk.
|
boolean |
containsProfile(GlowPlayerProfile profile)
Checks whether the player with a given UUID is in this list.
|
boolean |
containsUuid(UUID uuid)
Searches for a UUID.
|
List<GlowPlayerProfile> |
getProfiles()
Returns a
GlowPlayerProfile for each player whose UUID is in the list file. |
void |
load()
Reloads from the file.
|
protected JsonListFile.BaseEntry |
readEntry(Map<String,String> map)
Deserialize an entry from JSON format.
|
void |
remove(GlowPlayerProfile profile)
If the given player is on this list, removes that player and saves the change to disk.
|
savepublic UuidListFile(File file)
public void load()
JsonListFileload in class JsonListFilepublic List<GlowPlayerProfile> getProfiles()
GlowPlayerProfile for each player whose UUID is in the list file.GlowPlayerProfile instancespublic boolean containsUuid(UUID uuid)
uuid - the UUID to search forpublic boolean containsProfile(GlowPlayerProfile profile)
profile - the player whose UUID will be looked uppublic void add(org.bukkit.OfflinePlayer player)
player - the player to addpublic void remove(GlowPlayerProfile profile)
profile - the player to removeprotected JsonListFile.BaseEntry readEntry(Map<String,String> map)
JsonListFilereadEntry in class JsonListFilemap - The JSON object to read from.Copyright © 2021. All rights reserved.