public enum ServerRule extends Enum<ServerRule>
| Enum Constant and Description |
|---|
COMPETITIVE_GAME
A warning message will be shown when attempting to disconnect if the current
game is competitive.
|
LEGACY_COMBAT
Whether to revert combat mechanics to 1.7
|
LEGACY_ENCHANTING
If the server runs legacy enchanting (pre 1.8)
|
MINIMAP_STATUS
Whether or not minimap is allowed
Expected value: (String) NEUTRAL or FORCED_OFF
|
SERVER_HANDLES_WAYPOINTS
Whether or not the server will store waypoints, instead of the client
|
SHADERS_DISABLED
If this server forces shaders to be disabled
|
VOICE_ENABLED
If this server has enabled voice chat
|
| Modifier and Type | Method and Description |
|---|---|
static ServerRule |
getRule(String id) |
static ServerRule |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServerRule[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerRule MINIMAP_STATUS
public static final ServerRule SERVER_HANDLES_WAYPOINTS
public static final ServerRule COMPETITIVE_GAME
public static final ServerRule SHADERS_DISABLED
public static final ServerRule LEGACY_ENCHANTING
public static final ServerRule VOICE_ENABLED
public static final ServerRule LEGACY_COMBAT
public static ServerRule[] values()
for (ServerRule c : ServerRule.values()) System.out.println(c);
public static ServerRule valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ServerRule getRule(String id)
Copyright © 2022. All rights reserved.