setRequirements

@NotNull
abstract fun setRequirements(@Nullable requirements: @Nullable ServerActivation.Requirements): @NotNull ServerActivation.Builder

Sets the requirements for the activation.

If player or packet doesn't meet requirements, activation listeners won't be fired.

Default: null

Return

The builder instance.

Parameters

requirements

The activation requirements.