Make sync command reload sponge data too - resolves #98
This commit is contained in:
@@ -366,4 +366,11 @@ public interface LuckPermsPlugin {
|
||||
*/
|
||||
BufferedRequest<Void> getUpdateTaskBuffer();
|
||||
|
||||
/**
|
||||
* Called at the end of the sync task.
|
||||
*/
|
||||
default void onPostUpdate() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -54,6 +54,8 @@ public class UpdateTask implements Runnable {
|
||||
// Refresh all online users.
|
||||
plugin.getUserManager().updateAllUsers();
|
||||
|
||||
plugin.onPostUpdate();
|
||||
|
||||
plugin.getApiProvider().fireEvent(new PostSyncEvent());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user