It is not supported to update from a version lower than 4.5.9.2!
4.8.17
ADDED
- 1.16.2 Support
- Support for new piglin monster (1.16.2)
- API Method to check for pvp:
/**
* Check if two players can attack each other at the given location.
*
*
@Param attacker The attacker
*
@Param target The defender
*
@Param location Location of the fight
*
@Param setCombatTag Should Lands set a combat tag at these two players, if they are allowed to fight at the given location?
* Depending on the servers configuration this will result in players beeing allowed to fight for a configured period, even if they move into a safe claim.
* This prevents players running away into their claim to escape a fight, which they have started.
*
@Param sendMessage Should Lands send a deny message if result is false?
*
@Return This will return true, if the world is not a Lands world or the players are allowed to fight at the given location.
*/
boolean canPvP(
@NotNull Player attacker,
@NotNull Player target,
@NotNull Location location, boolean setCombatTag, boolean sendMessage);