Prevent some shutdown exceptions - closes #136

This commit is contained in:
Luck
2017-01-19 18:56:04 +00:00
Unverified
parent 02b88a8357
commit 01ac5382ea
6 changed files with 77 additions and 20 deletions
@@ -387,6 +387,12 @@ public interface LuckPermsPlugin {
*/
BufferedRequest<Void> getUpdateTaskBuffer();
/**
* Adds a runnable to be called when the plugin disables
* @param r the runnable to run
*/
void addShutdownHook(Runnable r);
/**
* Called at the end of the sync task.
*/