Class SameIpReasonHeartDropRestriction

java.lang.Object
dev.chicoferreira.lifestealer.restriction.restrictions.SameIpReasonHeartDropRestriction
All Implemented Interfaces:
LifestealerHeartDropRestriction

@ConfigSerializable public class SameIpReasonHeartDropRestriction extends Object implements LifestealerHeartDropRestriction
Represents a restriction based on the killer having the same IP as the player
  • Constructor Details

    • SameIpReasonHeartDropRestriction

      public SameIpReasonHeartDropRestriction()
  • Method Details

    • shouldRestrictHeartDrop

      public boolean shouldRestrictHeartDrop(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull LifestealerUser user, @NotNull @NotNull org.bukkit.event.entity.PlayerDeathEvent event)
      Description copied from interface: LifestealerHeartDropRestriction
      Checks if this restriction applies to the player
      Specified by:
      shouldRestrictHeartDrop in interface LifestealerHeartDropRestriction
      Parameters:
      player - the player that died
      user - the user related to the player
      event - the death event
      Returns:
      if this restriction applies to the player