Package com.enhancedechest.listener
Class TempChestJoinNotifyListener
java.lang.Object
com.enhancedechest.listener.TempChestJoinNotifyListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Reminds a player on join, when they still have items sitting in one or more temporary chests, to
collect them before those chests expire (config
temp-enderchest.join-notify, default on). The
reminder is sent as a chat message and an action bar at once, optionally with a sound.
The chest scan runs on the DbExecutor — never on the join thread — mirroring
JoinMigrationListener: on a server where nobody has a pending temp chest, a join costs zero
main-thread DB time even during a mass reconnect. When there is something to say, the actual send hops
to the player's own region thread (Scheduler.runAtEntityLater(org.bukkit.entity.Entity, java.lang.Runnable, long, java.util.concurrent.TimeUnit), Folia-safe) after a short delay
so the messages aren't lost in the join sequence, the same approach as UpdateNotifyListener.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TempChestJoinNotifyListener
public TempChestJoinNotifyListener()
-
-
Method Details
-
onJoin
public void onJoin(org.bukkit.event.player.PlayerJoinEvent event)
-