Block more tags

This commit is contained in:
Telesphoreo 2022-08-01 19:36:43 -05:00
parent 9dac0e799e
commit d896179f47

View File

@ -39,7 +39,7 @@ public class SafeMiniMessage
public static class SafeMiniMessageTagResolver implements TagResolver public static class SafeMiniMessageTagResolver implements TagResolver
{ {
private static final TagResolver STANDARD_RESOLVER = TagResolver.standard(); private static final TagResolver STANDARD_RESOLVER = TagResolver.standard();
private static final List<String> IGNORED_TAGS = ImmutableList.of("obfuscated", "obf", "br", "newline"); private static final List<String> IGNORED_TAGS = ImmutableList.of("obfuscated", "obf", "br", "newline", "lang", "key");
@Override @Override
public @Nullable Tag resolve(@NotNull String name, @NotNull ArgumentQueue arguments, @NotNull Context ctx) throws ParsingException public @Nullable Tag resolve(@NotNull String name, @NotNull ArgumentQueue arguments, @NotNull Context ctx) throws ParsingException