Class FilterRule
java.lang.Object
ua.mcchickenstudio.opencreative.settings.filters.FilterRule
-
Constructor Summary
ConstructorsConstructorDescriptionFilterRule(@NotNull String id, boolean warnPlayer, boolean notifyStaff, boolean checkChat, boolean checkAnvils, boolean checkBooks, boolean checkSigns, @NotNull FilterTextAction action, @NotNull String replacement, @NotNull List<Pattern> patterns, @NotNull List<Command> commands) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteCommands(@NotNull org.bukkit.entity.Player player, @NotNull String content, @NotNull String result) @NotNull StringfilterText(@NotNull String text) @NotNull StringgetId()booleanbooleanbooleanbooleanbooleanbooleanboolean
-
Constructor Details
-
FilterRule
public FilterRule(@NotNull @NotNull String id, boolean warnPlayer, boolean notifyStaff, boolean checkChat, boolean checkAnvils, boolean checkBooks, boolean checkSigns, @NotNull @NotNull FilterTextAction action, @NotNull @NotNull String replacement, @NotNull @NotNull List<Pattern> patterns, @NotNull @NotNull List<Command> commands)
-
-
Method Details
-
matches
-
shouldCheckAnvils
public boolean shouldCheckAnvils() -
shouldCheckBooks
public boolean shouldCheckBooks() -
shouldCheckChat
public boolean shouldCheckChat() -
shouldCheckSigns
public boolean shouldCheckSigns() -
shouldWarnPlayer
public boolean shouldWarnPlayer() -
shouldNotifyStaff
public boolean shouldNotifyStaff() -
filterText
-
executeCommands
-
getId
-