4drian3d / logfilter Goto Github PK
View Code? Open in Web Editor NEWFilter messages sent to your Velocity, Sponge, Paper and Krypton consoles
Home Page: https://modrinth.com/plugin/logfilter
License: GNU General Public License v3.0
Filter messages sent to your Velocity, Sponge, Paper and Krypton consoles
Home Page: https://modrinth.com/plugin/logfilter
License: GNU General Public License v3.0
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.
[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) ~[?:?]
[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
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) ~[?:?]
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
org.jetbrains.kotlin.jvm
, org.jetbrains.kotlin:kotlin-gradle-plugin
)xyz.jpenilla.run-waterfall
, xyz.jpenilla.run-paper
, xyz.jpenilla.run-velocity
)org.jetbrains.kotlin.jvm
, org.jetbrains.kotlin:kotlin-gradle-plugin
).github/workflows/gradle.yml
actions/checkout v4
actions/setup-java v4
nick-invision/retry v2
actions/upload-artifact v3
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.properties
gradle 8.5
Project won't compile.
a3cac3a
Java 11
Started by user andrewkm
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/LogFilter
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] Done
The recommended git tool is: NONE
No credentials specified
Cloning the remote Git repository
Cloning repository https://github.com/4drian3d/LogFilter
> git init /var/lib/jenkins/workspace/LogFilter # timeout=10
Fetching upstream changes from https://github.com/4drian3d/LogFilter
> git --version # timeout=10
> git --version # 'git version 2.34.1'
> git fetch --tags --force --progress -- https://github.com/4drian3d/LogFilter +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url https://github.com/4drian3d/LogFilter # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
> git rev-parse refs/remotes/origin/main^{commit} # timeout=10
Checking out Revision a3cac3a2d579d8f7f0a61817331f43d21be11cc2 (refs/remotes/origin/main)
> git config core.sparsecheckout # timeout=10
> git checkout -f a3cac3a2d579d8f7f0a61817331f43d21be11cc2 # timeout=10
Commit message: "fix: Removed jigsaw modules support and updated to Java 11"
First time build. Skipping changelog.
[Gradle] - Launching build.
[LogFilter] $ /var/lib/jenkins/workspace/LogFilter/gradlew clean build
Starting a Gradle Daemon (subsequent builds will be faster)
Path for java installation '/usr/lib/jvm/openjdk-11' (Common Linux Locations) does not contain a java executable
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':logfilter-bukkit'.
> Could not determine the dependencies of null.
> Could not resolve all task dependencies for configuration ':logfilter-bukkit:classpath'.
> Could not resolve project :build-logic.
Required by:
project :logfilter-bukkit
> No matching variant of project :build-logic was found. The consumer was configured to find a library for use during runtime, compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.5' but:
- Variant 'apiElements' capability :build-logic:unspecified declares a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component for use during compile-time, compatible with Java 17 and the consumer needed a component for use during runtime, compatible with Java 11
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
- Variant 'mainSourceElements' capability :build-logic:unspecified declares a component, and its dependencies declared externally:
- Incompatible because this component declares a component of category 'verification' and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java version (required compatibility with Java 11)
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
- Doesn't say anything about its usage (required runtime)
- Variant 'runtimeElements' capability :build-logic:unspecified declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component, compatible with Java 17 and the consumer needed a component, compatible with Java 11
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
- Variant 'testResultsElementsForTest' capability :build-logic:unspecified:
- Incompatible because this component declares a component of category 'verification' and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about how its dependencies are found (required its dependencies declared externally)
- Doesn't say anything about its target Java version (required compatibility with Java 11)
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
- Doesn't say anything about its usage (required runtime)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 9s
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
Archiving artifacts
Discard old builds...
Finished: FAILURE
Java 17
Started by user andrewkm
Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/LogFilter
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] Done
The recommended git tool is: NONE
No credentials specified
Cloning the remote Git repository
Cloning repository https://github.com/4drian3d/LogFilter
> git init /var/lib/jenkins/workspace/LogFilter # timeout=10
Fetching upstream changes from https://github.com/4drian3d/LogFilter
> git --version # timeout=10
> git --version # 'git version 2.34.1'
> git fetch --tags --force --progress -- https://github.com/4drian3d/LogFilter +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url https://github.com/4drian3d/LogFilter # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
> git rev-parse refs/remotes/origin/main^{commit} # timeout=10
Checking out Revision a3cac3a2d579d8f7f0a61817331f43d21be11cc2 (refs/remotes/origin/main)
> git config core.sparsecheckout # timeout=10
> git checkout -f a3cac3a2d579d8f7f0a61817331f43d21be11cc2 # timeout=10
Commit message: "fix: Removed jigsaw modules support and updated to Java 11"
> git rev-list --no-walk a3cac3a2d579d8f7f0a61817331f43d21be11cc2 # timeout=10
[Gradle] - Launching build.
[LogFilter] $ /var/lib/jenkins/workspace/LogFilter/gradlew clean build
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :build-logic
Path for java installation '/usr/lib/jvm/openjdk-11' (Common Linux Locations) does not contain a java executable
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
> Task :build-logic:checkKotlinGradlePluginConfigurationErrors
> Task :build-logic:generateExternalPluginSpecBuilders
> Task :build-logic:extractPrecompiledScriptPluginPlugins
> Task :build-logic:compilePluginsBlocks
> Task :build-logic:generatePrecompiledScriptPluginAccessors
> Task :build-logic:generateScriptPluginAdapters
> Task :build-logic:pluginDescriptors
> Task :build-logic:processResources
> Task :build-logic:compileKotlin
> Task :build-logic:compileJava NO-SOURCE
> Task :build-logic:classes
> Task :build-logic:jar
> Configure project :logfilter-sponge
SpongePowered Plugin 'GRADLE' Toolset Version '2.2.0'
Path for java installation '/usr/lib/jvm/openjdk-11' (Common Linux Locations) does not contain a java executable
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
> Task :logfilter-bukkit:clean UP-TO-DATE
> Task :logfilter-common:clean UP-TO-DATE
> Task :logfilter-paper:clean UP-TO-DATE
> Task :logfilter-sponge:clean UP-TO-DATE
> Task :logfilter-velocity:clean UP-TO-DATE
> Task :logfilter-common:processResources
> Task :logfilter-common:generateJavaTemplates
> Task :logfilter-bukkit:generateBukkitPluginDescription
> Task :logfilter-common:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':logfilter-common:compileJava'.
> Could not resolve all files for configuration ':logfilter-common:compileClasspath'.
> Failed to transform geantyref-1.3.11.jar (io.leangen.geantyref:geantyref:1.3.11) to match attributes {artifactType=jar, javaModule=true, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api}.
> Execution failed for ExtraJavaModuleInfoTransform: /var/lib/jenkins/.gradle/caches/modules-2/files-2.1/io.leangen.geantyref/geantyref/1.3.11/bc9c03b53917314d21fe6276aceb08aa84bf80dd/geantyref-1.3.11.jar.
> Not a module and no mapping defined: geantyref-1.3.11.jar
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 57s
19 actionable tasks: 14 executed, 5 up-to-date
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
Archiving artifacts
Discard old builds...
Finished: FAILURE
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
By making an exclusive version for Paper, it would allow filtering messages that previously would have been impossible to filter
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.