Class FilterRule

java.lang.Object
ua.mcchickenstudio.opencreative.settings.filters.FilterRule

public class FilterRule extends Object
  • 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

      public boolean matches(@NotNull @NotNull String text)
    • 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

      @NotNull public @NotNull String filterText(@NotNull @NotNull String text)
    • executeCommands

      public void executeCommands(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String content, @NotNull @NotNull String result)
    • getId

      @NotNull public @NotNull String getId()