pixar02 / Expansions

3 stars 8 forks source link

Plugin not working on 1.17.1 #7

Open 2266Flash opened 3 years ago

2266Flash commented 3 years ago

What happened:

PAPI would not reload and function until the extension for GriefPrevention was removed.

What was expected:

The plugin to reload normally and for everything to function as expected.

Steps to reproduce:

Install the GriefPrevention extension to PAPI on 1.17.1 Spigot, and reload PAPI.

Server and GriefPrevention version:

This can be found by running /version and /version GriefPrevention on your server. Paste of /version: 1.17.1-R0.1-SNAPSHOT Paste of /version GriefPrevention: 16.13.0

Stack trace/error or server log

[22:31:59] [Server thread/WARN]: [PlaceholderAPI] Task #4334 for PlaceholderAPI v2.10.10 generated an exception
java.lang.ClassCastException: class me.ryanhamshire.GriefPrevention.GriefPrevention cannot be cast to class me.ryanhamshire.GriefPrevention.GriefPrevention (me.ryanhamshire.GriefPrevention.GriefPrevention is in unnamed module of loader org.bukkit.plugin.java.PluginClassLoader @cfb4563; me.ryanhamshire.GriefPrevention.GriefPrevention is in unnamed module of loader org.bukkit.plugin.java.PluginClassLoader @17a1c016)
        at com.pixar02.papi.expansion.GriefPreventionExpansion.register(GriefPreventionExpansion.java:50) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:168) ~[?:?]
        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
        at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?]
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
        at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]
        at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:257) ~[?:?]
        at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:248) ~[?:?]
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
        at java.util.stream.ReferencePipeline.count(ReferencePipeline.java:709) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$3(LocalExpansionManager.java:327) ~[?:?]
        at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46) ~[?:?]
        at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:82) ~[server.jar:3210-Spigot-18c71bf-e1c96e5]
        at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:415) ~[server.jar:3210-Spigot-18c71bf-e1c96e5]
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1254) ~[server.jar:3210-Spigot-18c71bf-e1c96e5]
        at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:438) ~[server.jar:3210-Spigot-18c71bf-e1c96e5]
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1202) ~[server.jar:3210-Spigot-18c71bf-e1c96e5]
        at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1035) ~[server.jar:3210-Spigot-18c71bf-e1c96e5]
        at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:303) ~[server.jar:3210-Spigot-18c71bf-e1c96e5]
        at java.lang.Thread.run(Thread.java:831) [?:?]