Multiple entries with same key


#1

Hello,

I noticed there were 3 already closed issues on the Forge repo with similar title, but I’m having this issue when loading my plugin. I posted this there as well, but I figured I post here too.

Sponge API Version: 7.2.0-20190929.062928-29
Sponge Forge Version: spongeforge-1.12.2-2838-7.1.7-RC3927
Console Log:

[12:50:40] [Server thread/ERROR] [minecraft/MinecraftServer]: Encountered an unexpected exception
java.lang.IllegalArgumentException: Multiple entries with same key: dreadzone=Plugin{id=dreadzone, name=DreadZone, version=0.1.3, description=This plugin adds minigames!, url=http://salvadorzxa.com, authors=[SalvadorZXA], source=.\mods\DreadZone.jar} and dreadzone=Plugin{id=dreadzone, name=DreadZone, version=0.1.3, description=This plugin adds minigames!, authors=[SalvadorZXA], source=.\mods\DreadZone.jar}. To index multiple values under a key, use Multimaps.index.
        at com.google.common.collect.Maps.uniqueIndex(Maps.java:1385) ~[minecraft_server.1.12.2.jar:?]
        at com.google.common.collect.Maps.uniqueIndex(Maps.java:1341) ~[minecraft_server.1.12.2.jar:?]
        at net.minecraftforge.fml.common.Loader.identifyMods(Loader.java:427) ~[Loader.class:?]
        at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:566) ~[Loader.class:?]
        at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:98) ~[FMLServerHandler.class:?]
        at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:333) ~[FMLCommonHandler.class:?]
        at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:125) ~[nz.class:?]
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:486) [MinecraftServer.class:?]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_221]
[12:50:40] [Server thread/ERROR] [minecraft/MinecraftServer]: This crash report has been saved to: C:\Users\Salva\Desktop\Sponge 1.12.2 - Latest\.\crash-reports\crash-2019-10-07_12.50.40-server.txt
[12:50:40] [Server thread/INFO] [minecraft/MinecraftServer]: Stopping server
[12:50:40] [Server thread/INFO] [minecraft/MinecraftServer]: Saving worlds
[12:50:40] [Server thread/INFO] [FML]: The state engine was in incorrect state CONSTRUCTING and forced into state SERVER_STOPPED. Errors may have been discarded.
[12:50:40] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]: java.lang.NullPointerException
[12:50:40] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]:         at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:367)
[12:50:40] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]:         at org.spongepowered.mod.event.SpongeModEventManager.extendedPost(SpongeModEventManager.java:454)
[12:50:40] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]:         at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:415)
[12:50:40] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]:         at org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:253)
[12:50:40] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]:         at org.spongepowered.common.SpongeImpl.postState(SpongeImpl.java:261)
[12:50:40] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]:         at org.spongepowered.common.SpongeImpl.postShutdownEvents(SpongeImpl.java:266)
[12:50:40] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]:         at net.minecraft.server.dedicated.DedicatedServer.handler$postGameStoppingEvent$zmo000(DedicatedServer.java:1813)
[12:50:40] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]:         at net.minecraft.server.dedicated.DedicatedServer.func_71240_o(DedicatedServer.java)
[12:50:40] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]:         at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:589)
[12:50:40] [Server thread/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:-1]:         at java.lang.Thread.run(Unknown Source)

Update: This same error appears when creating a clean Gradle project.