Interface PostNetworkSyncEvent

All Superinterfaces:
LuckPermsEvent

public interface PostNetworkSyncEvent extends LuckPermsEvent
Called after a network synchronisation task has been completed.

Note: the generic PostSyncEvent will also be called for full syncs.

Since:
5.5
  • Method Details

    • getSyncId

      @NonNull UUID getSyncId()
      Gets the ID of the sync request
      Returns:
      the id of the sync request
    • getType

      @NonNull SyncType getType()
      Gets the sync type.
      Returns:
      the sync type
    • didSyncOccur

      boolean didSyncOccur()
      Gets if a sync occurred.

      For SyncType = FULL, this method always returns true.

      For SyncType = SPECIFIC_USER, this method returns true if the user in question was online/loaded in memory at the time, and false otherwise.

      Returns:
      if a sync occurred
    • getSpecificUserUniqueId

      @Nullable UUID getSpecificUserUniqueId()
      Gets the unique id of the specific user that has been synced, if applicable.
      Returns:
      the unique id of the specific user