mirror of
https://github.com/plexusorg/Plex.git
synced 2025-04-06 11:13:14 +00:00
23 lines
526 B
Java
23 lines
526 B
Java
package dev.plex.command.blocker;
|
|
|
|
import dev.plex.rank.enums.Rank;
|
|
import lombok.Getter;
|
|
|
|
import java.util.regex.Pattern;
|
|
|
|
@Getter
|
|
public class RegexCommand extends BaseCommand
|
|
{
|
|
private final Pattern regex;
|
|
|
|
public RegexCommand(Pattern r1, Rank r2, String m1)
|
|
{
|
|
super(r2, m1);
|
|
regex = r1;
|
|
}
|
|
|
|
public String toString()
|
|
{
|
|
return "RegexCommand (Rank: " + (getRank() == null ? "ALL" : getRank().name()) + ", Regex: " + regex.toString() + ", Message: " + getMessage() + ")";
|
|
}
|
|
} |