viewFilter

open fun viewFilter(@NotNull filter: @NotNull Predicate<PlatformPlayer>)

Adds a filter to restrict which players can view the model.

The given predicate is combined with the existing view filter using logical AND.


pipeline.viewFilter(player -> player.hasPermission("model.view"));

Since

1.15.2

Parameters

filter

the predicate to filter players

Throws