Class OldUsersConverter
java.lang.Object
net.minecraft.server.players.OldUsersConverter
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanconvertIpBanlist(MinecraftServer server) static @Nullable UUIDconvertMobOwnerIfNecessary(MinecraftServer server, String owner) static booleanconvertOpsList(MinecraftServer server) static booleanconvertPlayers(DedicatedServer server) static booleanconvertUserBanlist(MinecraftServer server) static booleanconvertWhiteList(MinecraftServer server) private static voidensureDirectoryExists(File directory) private static voidlookupPlayers(MinecraftServer server, Collection<String> names, com.mojang.authlib.ProfileLookupCallback callback) private static DatereadOldListFormat(File file, Map<String, String[]> userMap) private static voidrenameOldFile(File file)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
OLD_IPBANLIST
-
OLD_USERBANLIST
-
OLD_OPLIST
-
OLD_WHITELIST
-
-
Constructor Details
-
OldUsersConverter
public OldUsersConverter()
-
-
Method Details
-
readOldListFormat
- Throws:
IOException
-
lookupPlayers
private static void lookupPlayers(MinecraftServer server, Collection<String> names, com.mojang.authlib.ProfileLookupCallback callback) -
convertUserBanlist
-
convertIpBanlist
-
convertOpsList
-
convertWhiteList
-
convertMobOwnerIfNecessary
-
convertPlayers
-
ensureDirectoryExists
-
areOldUserlistsRemoved
public static boolean areOldUserlistsRemoved() -
renameOldFile
-
parseDate
-