public class ServerConfigHandler extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ServerConfigHandler.ServerConfigException |
Modifier and Type | Field and Description |
---|---|
static File |
BANNED_IPS_FILE |
static File |
BANNED_PLAYERS_FILE |
private static Logger |
LOGGER |
static File |
OPERATORS_FILE |
static File |
WHITE_LIST_FILE |
Constructor and Description |
---|
ServerConfigHandler() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
checkListConversionSuccess() |
private static boolean |
checkPlayerConversionSuccess(MinecraftServer server) |
static boolean |
checkSuccess(MinecraftServer server) |
static boolean |
convertBannedIps(MinecraftServer server) |
static boolean |
convertBannedPlayers(MinecraftServer server) |
static boolean |
convertOperators(MinecraftServer server) |
static boolean |
convertPlayerFiles(MinecraftDedicatedServer minecraftServer) |
static boolean |
convertWhitelist(MinecraftServer server) |
private static void |
createDirectory(File directory) |
private static File |
getLevelPlayersFolder(MinecraftServer server) |
static UUID |
getPlayerUuidByName(MinecraftServer server,
String name) |
private static void |
lookupProfile(MinecraftServer server,
Collection<String> bannedPlayers,
com.mojang.authlib.ProfileLookupCallback callback) |
private static void |
markFileConverted(File file) |
private static Date |
parseDate(String dateString,
Date fallback) |
(package private) static List<String> |
processSimpleListFile(File file,
Map<String,String[]> valueMap) |
private static final Logger LOGGER
public static final File BANNED_IPS_FILE
public static final File BANNED_PLAYERS_FILE
public static final File OPERATORS_FILE
public static final File WHITE_LIST_FILE
static List<String> processSimpleListFile(File file, Map<String,String[]> valueMap)
private static void lookupProfile(MinecraftServer server, Collection<String> bannedPlayers, com.mojang.authlib.ProfileLookupCallback callback)
public static boolean convertBannedPlayers(MinecraftServer server)
public static boolean convertBannedIps(MinecraftServer server)
public static boolean convertOperators(MinecraftServer server)
public static boolean convertWhitelist(MinecraftServer server)
@Nullable public static UUID getPlayerUuidByName(MinecraftServer server, String name)
public static boolean convertPlayerFiles(MinecraftDedicatedServer minecraftServer)
private static void createDirectory(File directory)
public static boolean checkSuccess(MinecraftServer server)
private static boolean checkListConversionSuccess()
private static boolean checkPlayerConversionSuccess(MinecraftServer server)
private static File getLevelPlayersFolder(MinecraftServer server)
private static void markFileConverted(File file)