mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 05:01:28 +00:00
Wait 1 second after deactivation of protect to allow the database to close.
This commit is contained in:
parent
040e2bee86
commit
af248a1d2e
1 changed files with 8 additions and 0 deletions
|
@ -190,6 +190,14 @@ public class EssentialsProtect extends JavaPlugin implements IConf, IProtect
|
|||
{
|
||||
storage.onPluginDeactivation();
|
||||
}
|
||||
// Sleep for a second to allow the database to close.
|
||||
try
|
||||
{
|
||||
Thread.sleep(1000);
|
||||
}
|
||||
catch (InterruptedException ex)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public IEssentials getEssentials()
|
||||
|
|
Loading…
Reference in a new issue