public class OperatorEntry extends ServerConfigEntry<com.mojang.authlib.GameProfile>
Modifier and Type | Field and Description |
---|---|
private boolean |
bypassPlayerLimit |
private int |
permissionLevel |
Constructor and Description |
---|
OperatorEntry(com.mojang.authlib.GameProfile profile,
int permissionLevel,
boolean bypassPlayerLimit) |
OperatorEntry(JsonObject json) |
Modifier and Type | Method and Description |
---|---|
boolean |
canBypassPlayerLimit() |
protected void |
fromJson(JsonObject json) |
int |
getPermissionLevel() |
private static com.mojang.authlib.GameProfile |
getProfileFromJson(JsonObject json) |
getKey, isInvalid
private final int permissionLevel
private final boolean bypassPlayerLimit
public OperatorEntry(com.mojang.authlib.GameProfile profile, int permissionLevel, boolean bypassPlayerLimit)
public OperatorEntry(JsonObject json)
public int getPermissionLevel()
public boolean canBypassPlayerLimit()
protected void fromJson(JsonObject json)
fromJson
in class ServerConfigEntry<com.mojang.authlib.GameProfile>
private static com.mojang.authlib.GameProfile getProfileFromJson(JsonObject json)