Giter Club home page Giter Club logo

logfilter's Introduction

LogFilter status Discord

Filter messages sent to your Velocity, Sponge and Paper consoles

Features

  • Regex Support
  • Fast pattern detection by cache

Compatibility

  • Velocity 3.1.0+ Support
  • Sponge 8.1+ Support
  • Paper 1.19+ Support

Downloads

Download it from Modrinth

logfilter's People

Contributors

4drian3d avatar adrian3d04 avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

logfilter's Issues

Add support for paper-plugin.yml

By making an exclusive version for Paper, it would allow filtering messages that previously would have been impossible to filter

Unable to load plugin in latest build

PaperMC/Paper#9160
PaperMC/Paper#9267
Log:

( 7:07:10.71) Minecraft started.
WARNING: Using incubator modules: jdk.incubator.vector
Starting org.bukkit.craftbukkit.Main
System Info: Java 17 (Java HotSpot(TM) 64-Bit Server VM 17.0.7+8-LTS-224) Host: Windows 10 10.0 (amd64)
Loading libraries, please wait...
[07:07:22 INFO]: [SparkProviderSource] Purpur: Using user-provided spark plugin instead of our own.
[07:07:25 ERROR]: [BootstrapProviderStorage] Failed to run bootstrapper for plugins\LogFilter-Paper-3.0.5.jar. This plugin will not be loaded.
java.lang.AbstractMethodError: Receiver class me.adrianed.logfilter.paper.LogBootstrap does not define or inherit an implementation of the resolved method 'abstract void bootstrap(io.papermc.paper.plugin.bootstrap.BootstrapContext)' of interface io.papermc.paper.plugin.bootstrap.PluginBootstrap.
        at io.papermc.paper.plugin.storage.BootstrapProviderStorage$1.load(BootstrapProviderStorage.java:34) ~[purpur-1.19.4.jar:git-Purpur-1984]
        at io.papermc.paper.plugin.storage.BootstrapProviderStorage$1.load(BootstrapProviderStorage.java:22) ~[purpur-1.19.4.jar:git-Purpur-1984]
        at io.papermc.paper.plugin.entrypoint.strategy.modern.ModernPluginLoadingStrategy.loadProviders(ModernPluginLoadingStrategy.java:117) ~[purpur-1.19.4.jar:git-Purpur-1984]
        at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:39) ~[purpur-1.19.4.jar:git-Purpur-1984]
        at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:36) ~[purpur-1.19.4.jar:git-Purpur-1984]
        at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enterBootstrappers(LaunchEntryPointHandler.java:26) ~[purpur-1.19.4.jar:git-Purpur-1984]
        at net.minecraft.server.Bootstrap.lambda$bootStrap$0(Bootstrap.java:75) ~[?:?]
        at net.minecraft.core.registries.BuiltInRegistries.bootStrap(BuiltInRegistries.java:321) ~[purpur-1.19.4.jar:git-Purpur-1984]
        at net.minecraft.server.Bootstrap.bootStrap(Bootstrap.java:73) ~[?:?]
        at net.minecraft.server.Main.main(Main.java:127) ~[purpur-1.19.4.jar:git-Purpur-1984]
        at org.bukkit.craftbukkit.Main.main(Main.java:330) ~[purpur-1.19.4.jar:git-Purpur-1984]
        at io.papermc.paperclip.Paperclip.lambda$main$0(Paperclip.java:42) ~[app:?]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]



Paper-specific builds struggling on paper

I am having trouble with both the paper builds 3.0.5 and 3.0.6 on each of paper 1.20 and paper 1.20.1, interestingly it has an error, says it loads despite the error, and then (expectedly) refuses to work.

This error did not occur with the paper build 3.0.5 on 1.19.4, and does not occur with the bukkit build of 3.0.5 on 1.20.1, so while it does work if I use the bukkit build I thought I should bring it up.

Error of the build 3.0.5 on 1.20.1

[19.06 22:16:38] [Server] [ERROR] [BootstrapProviderStorage] Failed to run bootstrapper for plugins/LogFilter-Paper-3.0.5.jar. This plugin will not be loaded. [19.06 22:16:38] [Server] java.lang.AbstractMethodErrorReceiver class me.adrianed.logfilter.paper.LogBootstrap does not define or inherit an implementation of the resolved method 'abstract void bootstrap(io.papermc.paper.plugin.bootstrap.BootstrapContext)' of interface io.papermc.paper.plugin.bootstrap.PluginBootstrap. [19.06 22:16:38] [Server] at io.papermc.paper.plugin.storage.BootstrapProviderStorage$1.load(BootstrapProviderStorage.java:34) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:16:38] [Server] at io.papermc.paper.plugin.storage.BootstrapProviderStorage$1.load(BootstrapProviderStorage.java:22) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:16:38] [Server] at io.papermc.paper.plugin.entrypoint.strategy.modern.ModernPluginLoadingStrategy.loadProviders(ModernPluginLoadingStrategy.java:117) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:16:38] [Server] at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:39) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:16:38] [Server] at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:36) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:16:38] [Server] at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enterBootstrappers(LaunchEntryPointHandler.java:26) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:16:38] [Server] at net.minecraft.server.Bootstrap.lambda$bootStrap$0(Bootstrap.java:82) ~[?:?] [19.06 22:16:38] [Server] at net.minecraft.core.registries.BuiltInRegistries.bootStrap(BuiltInRegistries.java:328) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:16:38] [Server] at net.minecraft.server.Bootstrap.bootStrap(Bootstrap.java:80) ~[?:?] [19.06 22:16:38] [Server] at net.minecraft.server.Main.main(Main.java:127) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:16:38] [Server] at org.bukkit.craftbukkit.Main.main(Main.java:316) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:16:38] [Server] at io.papermc.paperclip.Paperclip.lambda$main$0(Paperclip.java:42) ~[app:?] [19.06 22:16:38] [Server] at java.lang.Thread.run(Thread.java:833) ~[?:?]

Error of the build 3.0.6 on 1.20.1

[19.06 22:09:27] [Server] [ERROR] [LogFilter] Error initializing plugin 'LogFilter-Paper-3.0.6.jar' in folder 'plugins' (Is it up to date?) [19.06 22:09:27] [Server] java.lang.NoClassDefFoundErrorme/adrianed/logfilter/common/configuration/Loader [19.06 22:09:27] [Server] at me.adrianed.logfilter.paper.LogFilterPaper.onLoad(LogFilterPaper.java:27) ~[LogFilter-Paper-3.0.6.jar:?] [19.06 22:09:27] [Server] at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:59) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:09:27] [Server] at io.papermc.paper.plugin.storage.ServerPluginProviderStorage.processProvided(ServerPluginProviderStorage.java:18) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:09:27] [Server] at io.papermc.paper.plugin.storage.SimpleProviderStorage.enter(SimpleProviderStorage.java:40) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:09:27] [Server] at io.papermc.paper.plugin.entrypoint.LaunchEntryPointHandler.enter(LaunchEntryPointHandler.java:36) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:09:27] [Server] at org.bukkit.craftbukkit.v1_20_R1.CraftServer.loadPlugins(CraftServer.java:504) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:09:27] [Server] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:273) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:09:27] [Server] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1101) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:09:27] [Server] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:318) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:09:27] [Server] at java.lang.Thread.run(Thread.java:833) ~[?:?] [19.06 22:09:27] [Server] Caused byjava.lang.ClassNotFoundException: me.adrianed.logfilter.common.configuration.Loader [19.06 22:09:27] [Server] at io.papermc.paper.plugin.entrypoint.classloader.PaperPluginClassLoader.loadClass(PaperPluginClassLoader.java:142) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:09:27] [Server] at io.papermc.paper.plugin.entrypoint.classloader.PaperPluginClassLoader.loadClass(PaperPluginClassLoader.java:103) ~[paper-1.20.1.jar:git-Paper-43] [19.06 22:09:27] [Server] at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?] [19.06 22:09:27] [Server] ... more

"Unable to get blocked-strings" when using multiple filter strings

When using paper-plugin build 3.0.6 with paper-server build 280 for 1.20.2, I get the following error.

[19:16:04] [Server thread/INFO]: [LogFilter] Loading server plugin LogFilter v3.0.6
[19:16:04] [Server thread/INFO]: [LogFilter] Loading filter
[19:16:04] [Server thread/ERROR]: [LogFilter] Unable to get blocked-strings

This issue is not present in bukkit-plugin build 3.0.5 (paper-plugin build 3.0.5 has separate solved issue), and using a single string has correct functionality in 3.0.6

Config used for both builds:

# Sets the strings to be blocked
blocked-strings=[
    "logged in with entity",
    "/msg"
]

# Sets whether a regex detection will be performed.
# If this option is set to false it will check
# if the console messages contain any string
# specified in blocked-strings, otherwise
# it will do regex checks according to
# blocked-strings to each console message.
use-regex=false

edit: clarification of bukkit/paper build

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/gradle.yml
  • actions/checkout v4
  • actions/setup-java v4
  • nick-invision/retry v2
  • actions/upload-artifact v3
gradle
gradle.properties
settings.gradle.kts
  • org.gradle.toolchains.foojay-resolver-convention 0.7.0
build.gradle.kts
build-logic/settings.gradle.kts
build-logic/build.gradle.kts
build-logic/src/main/kotlin/logfilter.shadow.base.gradle.kts
build-logic/src/main/kotlin/logfilter.shadow.configurate.gradle.kts
build-logic/src/main/kotlin/logfilter.shadow.java.gradle.kts
build-logic/src/main/kotlin/logfilter.shadow.kotlin.gradle.kts
bukkit/build.gradle.kts
common/build.gradle.kts
gradle/libs.versions.toml
  • org.apache.logging.log4j:log4j-core 2.20.0
  • org.spongepowered:configurate-hocon 4.1.2
  • com.velocitypowered:velocity-api 3.2.0-SNAPSHOT
  • com.destroystokyo.paper:paper-api 1.16.5-R0.1-SNAPSHOT
  • io.papermc.paper:paper-api 1.20.1-R0.1-SNAPSHOT
  • io.github.waterfallmc:waterfall-api 1.19-R0.1-SNAPSHOT
  • com.github.johnrengelman:shadow 8.1.1
  • org.jetbrains.kotlin:kotlin-gradle-plugin 1.9.21
  • net.kyori.blossom 2.1.0
  • org.gradlex.extra-java-module-info 1.6
  • com.github.johnrengelman.shadow 8.1.1
  • org.spongepowered.gradle.plugin 2.2.0
  • xyz.jpenilla.run-velocity 2.2.2
  • xyz.jpenilla.run-paper 2.2.2
  • xyz.jpenilla.run-waterfall 2.2.2
  • net.minecrell.plugin-yml.bungee 0.6.0
  • net.minecrell.plugin-yml.bukkit 0.6.0
  • org.jetbrains.kotlin.jvm 1.9.21
  • org.jetbrains.gradle.plugin.idea-ext 1.1.7
paper/build.gradle.kts
sponge/build.gradle.kts
velocity/build.gradle.kts
waterfall/build.gradle.kts
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 8.5

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.