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

Update DatabaseFactory.java

This commit is contained in:
Fisher
2022-01-19 09:48:21 -05:00
committed by GitHub
parent 14d1cf5d19
commit cfa36dab4b

View File

@@ -33,6 +33,7 @@ public class DatabaseFactory {
final Logger logger = plugin.getLogger();
if (type == null) {
logger.severe("Database type was null, disabling plugin.");
Bukkit.getPluginManager().disablePlugin(plugin);
throw new NullPointerException();
}