mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-10 16:48:05 +02:00
Wait 1 second after deactivation of protect to allow the database to close.
This commit is contained in:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user