Prevent some shutdown exceptions - closes #136

This commit is contained in:
Luck committed 2017-01-19 18:56:22 +00:00
1 parent 02b88a8357
commit 01ac5382ea
6 files changed
+77 -20

No files matched your search

@@ -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.
*/