Reduce erroneous module event dependency messages

This commit is contained in:
PikaMug 2024-02-20 17:25:41 -05:00
parent 307326d1b1
commit d75aa9b248

View File

@ -46,6 +46,9 @@ public class BukkitQuestsLog4JFilter extends AbstractFilter {
return Result.DENY;
}
// Paper outputs errors when dependencies for module events are missing
if (message.contains("Failed to register events") && message.contains("does not exist.")) {
return Result.DENY;
}
return (message.contains("Plugin Quests") && message.contains("failed to register events"))
? Result.DENY : Result.NEUTRAL;
}