mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-21 18:15:32 +01:00
Reduce erroneous module event dependency messages
This commit is contained in:
parent
307326d1b1
commit
d75aa9b248
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user