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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
shouldRestrictHeartDrop
(@NotNull org.bukkit.entity.Player player, @NotNull LifestealerUser user, @NotNull org.bukkit.event.entity.PlayerDeathEvent event) Checks if this restriction applies to 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 interfaceLifestealerHeartDropRestriction
- Parameters:
player
- the player that dieduser
- the user related to the playerevent
- the death event- Returns:
- if this restriction applies to the player
-