mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-28 19:39:14 +00:00
Update DatabaseFactory.java
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user