public interface PlayerModifications
Such modifications might trigger false positives, this is why this class exists.
| Modifier and Type | Method and Description | 
|---|---|
default boolean | 
canFly(Player player)
Indicates whether the given player is permitted to fly. 
 | 
default String | 
getDisplayname()  | 
default boolean | 
isProtected(Player player,
           Entity damager)
Indicates whether the given player can be damaged by the given entity. 
 | 
default boolean | 
isSpeedUnlocked(Player player)
Indicates whether the given player can move as fast as they want. 
 | 
default boolean | 
shouldIgnoreMovementChecks(Player player)
Indicates whether the given player's movements should not be checked 
 | 
default String getDisplayname()
default boolean isProtected(Player player, Entity damager)
Implementors might need to use more context, like the player location, to determine if they are in a region of a world that protects them for example.
player - the player to check if is protecteddamager - the entity that try to damage playerPlayerModificationsManager.isProtected(Player, Entity)default boolean canFly(Player player)
player - the player which is looking for flyPlayerModificationsManager.canFly(Player)default boolean isSpeedUnlocked(Player player)
player - the player which is looking for speedPlayerModificationsManager.isSpeedUnlocked(Player)default boolean shouldIgnoreMovementChecks(Player player)
player - the player which can have ignore movementPlayerModificationsManager.shouldIgnoreMovementChecks(Player)