Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1023,8 +1023,10 @@ public void updateReplacements() {
*
* @param storageType the storage type to load
*/
@SuppressWarnings("deprecation")
public void loadUserAPI(UserStorage storageType) {
if (storageType == null) {
throw new IllegalArgumentException("User storage must be SQLITE or MYSQL");
}
if (storageType.equals(UserStorage.SQLITE)) {
ArrayList<Column> columns = new ArrayList<>();
Column key = new Column("uuid", DataType.STRING);
Expand All @@ -1043,8 +1045,6 @@ public void loadUserAPI(UserStorage storageType) {
getOptions().getYmlConfig().getData().getConfigurationSection("MySQL")));
}

} else if (storageType.equals(UserStorage.FLAT)) {
getLogger().severe("Detected using FLAT storage, this will be removed in the future!");
}
}

Expand Down
Loading
Loading