Prevent some shutdown exceptions - closes #136
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user