Fix error on shutdown if command manager was not initialized

This commit is contained in:
GeorgH93 2023-05-10 22:27:18 +02:00
parent ae52896d78
commit 7aec09de1b
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8

View File

@ -243,7 +243,7 @@ private void unload()
inventoryClearCommand = null;
}
if(collector != null) collector.close();
commandManager.close();
if(commandManager != null) commandManager.close();
if(collector != null) collector.cancel();
if(database != null) database.close(); // Close the DB connection, we won't need them any longer
HandlerList.unregisterAll(this); // Stop the listeners