Update default storageprovider to YAML.
This commit is contained in:
@@ -2,6 +2,7 @@ package com.alttd.essentia.storage;
|
||||
|
||||
import com.alttd.essentia.EssentiaPlugin;
|
||||
import com.alttd.essentia.storage.mysql.SQLStorageProvider;
|
||||
import com.alttd.essentia.storage.sqlite.SQLiteStorageProvider;
|
||||
import com.alttd.essentia.storage.yaml.YamlStorageProvider;
|
||||
|
||||
import java.io.File;
|
||||
@@ -16,9 +17,10 @@ public class StorageManager {
|
||||
|
||||
public StorageProvider storageProvider(StorageType type) {
|
||||
return switch (type) {
|
||||
case MYSQL -> new SQLStorageProvider(plugin);
|
||||
// case MYSQL -> new SQLStorageProvider(plugin); // FIXME
|
||||
case YAML -> new YamlStorageProvider(plugin, plugin.getDataFolder().getPath() + File.separator + "PlayerData");
|
||||
case SQLITE -> throw new UnsupportedOperationException(); // FIXME
|
||||
// case SQLITE -> new SQLiteStorageProvider(plugin); // FIXME
|
||||
default -> throw new UnsupportedOperationException();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user