Class RegexMessage

java.lang.Object
ch.njol.skript.localization.Message
ch.njol.skript.localization.RegexMessage

public class RegexMessage extends Message
  • Field Details

    • nop

      public static final Pattern nop
      A pattern that doesn't match anything
  • Constructor Details

    • RegexMessage

      public RegexMessage(String key, @Nullable String prefix, @Nullable String suffix, int flags)
    • RegexMessage

      public RegexMessage(String key, String prefix, String suffix)
    • RegexMessage

      public RegexMessage(String key, int flags)
    • RegexMessage

      public RegexMessage(String key)
  • Method Details

    • getPattern

      public @Nullable Pattern getPattern()
    • matcher

      public Matcher matcher(String s)
    • matches

      public boolean matches(String s)
    • find

      public boolean find(String s)
    • toString

      public String toString()
      Overrides:
      toString in class Message
      Returns:
      The value of this message in the current language
    • onValueChange

      protected void onValueChange()
      Description copied from class: Message
      Called when this Message's value changes. This is not neccessarily called for every language change, but only when the value is actually accessed and the language has changed since the last call of this method.
      Overrides:
      onValueChange in class Message