This repository has been archived on 2024-07-25. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Thresholds/src/main/java/dev/zontreck/thresholds/database/OTEDatastore.java

29 lines
669 B
Java

package dev.zontreck.thresholds.database;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import dev.zontreck.libzontreck.util.FileTreeDatastore;
public class OTEDatastore extends FileTreeDatastore
{
private static final Path OTEBASE;
static{
Path X = FileTreeDatastore.of("otemod");
OTEBASE=X;
if(!OTEBASE.toFile().exists())
{
try {
Files.createDirectory(OTEBASE);
} catch (IOException e) {
e.printStackTrace();
}
}
}
public static Path of(String nick)
{
return OTEBASE.resolve(nick);
}
}