Make sync command reload sponge data too - resolves #98

This commit is contained in:
Luck
2016-12-21 21:34:43 +00:00
Unverified
parent fc4750706b
commit 8795383e7c
3 changed files with 21 additions and 0 deletions
@@ -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());
}
}