Class PlayerShareHandlingState

java.lang.Object
org.mvplugins.multiverse.inventories.handleshare.PlayerShareHandlingState

@AvailableSince("5.3") @Service public final class PlayerShareHandlingState extends Object
Keeps track of players who are currently having their sharable handling processed.
This is used to prevent infinite loops when updating sharables that may trigger events themselves or when suppressing notifications during the handling process.
Since:
5.3
  • Method Details

    • isHandlingSharable

      @AvailableSince("5.3") public boolean isHandlingSharable(org.bukkit.entity.Player player, Sharable<?> sharable)
      Checks if the given player is currently having the given sharable handled.
      Parameters:
      player - The player to check.
      sharable - The sharable to check.
      Returns:
      True if the player is having the sharable handled, false otherwise.
      Since:
      5.3