1.9 incompatibility - plugin will not load
tmad40blue opened this issue · 22 comments
Hi, looks like PwnFilter is not loading using Spigot 1.9 - the stacktrace is below. Thanks!
[09:35:21] [Server thread/INFO]: [PwnFilter] Enabling PwnFilter v3.3.1
[09:35:21] [Server thread/INFO]: [PwnFilter] Now logging to plugins/PwnFilter/pwnfilter.log
[09:35:21] [Server thread/INFO]: [PwnFilter] Vault found. Enabling actions requiring Vault
[09:35:21] [Server thread/ERROR]: Error occurred while enabling PwnFilter v3.3.1 (Is it up to date?)
java.lang.NoSuchMethodError: org.bukkit.Bukkit.getOnlinePlayers()[Lorg/bukkit/entity/Player;
at com.pwn9.PwnFilter.DataCache.start(DataCache.java:92) ~[?:?]
at com.pwn9.PwnFilter.PwnFilter.onEnable(PwnFilter.java:130) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:291) ~[spigot.jar:git-Spigot-604e046-69e196f]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot.jar:git-Spigot-604e046-69e196f]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-604e046-69e196f]
at org.bukkit.craftbukkit.v1_9_R1.CraftServer.loadPlugin(CraftServer.java:361) [spigot.jar:git-Spigot-604e046-69e196f]
at org.bukkit.craftbukkit.v1_9_R1.CraftServer.enablePlugins(CraftServer.java:321) [spigot.jar:git-Spigot-604e046-69e196f]
at net.minecraft.server.v1_9_R1.MinecraftServer.t(MinecraftServer.java:411) [spigot.jar:git-Spigot-604e046-69e196f]
at net.minecraft.server.v1_9_R1.MinecraftServer.l(MinecraftServer.java:376) [spigot.jar:git-Spigot-604e046-69e196f]
at net.minecraft.server.v1_9_R1.MinecraftServer.a(MinecraftServer.java:331) [spigot.jar:git-Spigot-604e046-69e196f]
at net.minecraft.server.v1_9_R1.DedicatedServer.init(DedicatedServer.java:269) [spigot.jar:git-Spigot-604e046-69e196f]
at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:522) [spigot.jar:git-Spigot-604e046-69e196f]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]
Thank you so much! I will be anxiously awaiting your update, as my entire server model depends on it (I run a major family-friendly server).
Just a heads up that PwnFilter 4.0 (the next release) will only work on Java 8. Java 7 will no longer be supported.
Thank you for updating! I thought this plugin was abandoned. Can't wait to use it again.
you can manually apply the special source provided by md5. Takes 10 seconds and the plugin works again. Just in case you cannot wait:)
@Darunia18 Wanna send that to me? ;) BuildTools doesn't like me.
@Darunia18 The PwnFilter. I have another way to get the Spigot.
@itismejoey The Spigot jar or the fixed PwnFilter jar? Because Spigot updates multiple times a day, so it'd be best to figure that out yourself.
@itismejoey Fair enough. If you, or anyone else, wants me to send them to fix for PwnFilter, just email me at [email protected]. And just to clarify that this is not a permanent solution. This is just a temporary fix using some Spigot-built tools to change old API functions that were removed to new ones. If there are any issues with it, I cannot help, as I did not change any code myself, and the author of PwnFilter cannot help, as the changes were not written by him.
@i9hdkill
Unfortunately, while this does allow the plugin to "load", it does not allow the plugin to function - there appears to be version-specific code in PwnFilter which is preventing it from performing any actions, commands, etc.
I'll be anxiously awaiting the updated version so that I am able to update my server to Spigot 1.9 - this is the final plugin that I am waiting on.
@tmad40blue I updated PwnFilter through the SpecialSource updater and it works great for me! Not only does it load, but the filter works and all the commands work.
To get this plugin working again, you need to change one line of code in the cache.class. That's it.
However, to elimate all errors, metrics must be removed.
But BuildTools does the job aswell in less than 2 seconds:)
Any news on PwnFilter and when you'll be able to update it to work with Spigot 1.9? Thanks!
Im on a hosted server and not able to update jar files myself for spigot, we run a server for children with autistic conditions and this plugin is a core feature of our server, can someone send me this fix jar file so I can get it to load at least for now.
thanks in advance can send it to [email protected] thank you.
@elliswin - did you get this yet? I can send it to you once I get home this evening.
@2fast08- thanks for that, but I already have the fix and I'm not going to use an unofficial release.
That's up to you, however this plugin has had no updates to its source code
in 7 months and I am also just as capable as these guys.
On Mar 16, 2016 8:57 PM, "Joey Aberle" [email protected] wrote:
@2fast08- thanks for that, but I already have the fix and I'm not going to
use an unofficial release.—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#16 (comment)
I use PwnFilter 3.3.1, I used SpecialSauce to get it to run under 1.9, and it mostly seems to work, until I attempt to reload the config/rules with /pfreload
which causes a Java exception, which I've reported in #17.
@2Fast08 - kudos for forking for 1.9 support - do you have a GitHub or other repository about to see what you had to change? I want to try your version, but would like to see the code and quite probably build it myself first :)
Please try the latest 3.9.0 development build: https://ci.sagely.ca/job/PwnFilterDevelopment/
I've taken that 3.9.0 dev build for a spin on my test server and, so far, it seems to be working well. I can confirm that the explosion when doing /pfreload
no longer happens, and that filtering seems to work as expected.
Thanks for your work on this @ptoal! Greatly appreciate it.