When using the closeInventory(); method while a user has a DeluxeMenu open it does not seem to work if the user has previously logged out.
I have attempted many different solutions but none seem to work. The only factor that remains the same is a user must log out beforehand.
This is the relevant code related to the problem: https://paste.helpch.at/gowudenuha.java
As soon as it gets to the runAnimation method even if I put in a check to force close any open inventories it does not work.
One confusing factor is how using getInventory().getTitle(); changes it's return on the DeluxeMenu depending if the user has logged out or not.
If the user has logged out it will report the title as Crafting instead of the configured title in the yaml file.