Class TempReclaimNotifier

java.lang.Object
com.enhancedechest.service.TempReclaimNotifier

public final class TempReclaimNotifier extends Object
Tells a player where their temporary-chest items went when ChestSpillService.reclaimTempInto(java.util.UUID, int) moved them into a newly granted chest (temp-enderchest.reclaim-notify, default on). Chat and action bar at once, optionally with a sound — the same shape as the join reminder, because it answers the same question from the other end: the join reminder says items are waiting, this says they have been put away.

Hooked into the spill service rather than its callers, so every way of granting a chest (a permission reconcile, /ee add) reports the move without having to remember to.

An offline owner is simply skipped. The reclaim already happened and is durable, so there is nothing to retry: the items are sitting in a normal chest the player will find on their own.

  • Constructor Details

  • Method Details

    • notifyReclaimed

      public void notifyReclaimed(UUID owner, int targetIndex)
      Called from the DB executor the moment a reclaim reports success. Never throws: this sits on the tail of the reclaim future, and a failure to say something must not fail the move that already happened.