use of com.github.vaerys.tags.cctags.TagRemoveMentions in project DiscordSailv2 by Vaerys-Dawn.
the class AdminEcho method execute.
@Override
public String execute(String args, CommandObject command) {
List<TagObject> tags = TagList.getType(TagType.CC);
ListIterator<TagObject> iterator = tags.listIterator();
while (iterator.hasNext()) {
TagObject object = iterator.next();
if (object.name.equals(new TagRemoveMentions(0).name)) {
iterator.remove();
}
}
args += new TagRemoveSanitizeTag(0).name;
TagList.sort(tags);
for (TagObject t : tags) {
args = t.handleTag(args, command, "");
}
return args;
}
Aggregations