public class UserListOps extends UserList<GameProfile,UserListOpsEntry>
Constructor and Description |
---|
UserListOps(java.io.File saveFile) |
Modifier and Type | Method and Description |
---|---|
boolean |
bypassesPlayerLimit(GameProfile profile) |
protected UserListEntry<GameProfile> |
createEntry(JsonObject entryData) |
GameProfile |
getGameProfileFromName(java.lang.String username)
Gets the GameProfile of based on the provided username.
|
java.lang.String[] |
getKeys() |
protected java.lang.String |
getObjectKey(GameProfile obj)
Gets the key value for the given object
|
int |
getPermissionLevel(GameProfile profile)
Get the OP permission level this player has
|
addEntry, getEntry, getSaveFile, getValues, hasEntry, isEmpty, isLanServer, readSavedFile, removeEntry, setLanServer, writeChanges
protected UserListEntry<GameProfile> createEntry(JsonObject entryData)
createEntry
in class UserList<GameProfile,UserListOpsEntry>
public java.lang.String[] getKeys()
getKeys
in class UserList<GameProfile,UserListOpsEntry>
public int getPermissionLevel(GameProfile profile)
public boolean bypassesPlayerLimit(GameProfile profile)
protected java.lang.String getObjectKey(GameProfile obj)
getObjectKey
in class UserList<GameProfile,UserListOpsEntry>
public GameProfile getGameProfileFromName(java.lang.String username)