9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-28 03:19:15 +00:00

More database stuff

This commit is contained in:
HeroBrineGoat
2022-01-20 19:09:54 -05:00
parent d78bf20ca9
commit 70ee381f48
8 changed files with 85 additions and 70 deletions

View File

@@ -21,6 +21,7 @@ import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import java.io.BufferedReader;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
@@ -49,7 +50,11 @@ public class HMCCosmetics extends JavaPlugin {
this.userManager.startTeleportTask();
this.database = DatabaseFactory.create(this);
try {
this.database = DatabaseFactory.create(this);
} catch (final SQLException exception) {
exception.printStackTrace();
}
this.registerCommands();
this.registerListeners();