mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 12:02:53 +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();
|
storage.onPluginDeactivation();
|
||||||
}
|
}
|
||||||
|
// Sleep for a second to allow the database to close.
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException ex)
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEssentials getEssentials()
|
public IEssentials getEssentials()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue