Extra Hard Mode

Extra Hard Mode

63.1k Downloads

IllegalArgumentException on start-up

SlimeDog opened this issue ยท 5 comments

commented

Spigot 1.14.3
EHM 3.14.alpha-2c99465
With newly-generated config.yml

    Mining:
      # Hardened blocks require certain tools to be broken and will wear those tools down quicker
      # This is to encourage caving, by making branch mining unprofitable
      Inhibit Tunneling:
        Amount of Stone Tool Can Mine (Tool@Blocks):
        - IRON_PICKAXE
        - DIAMOND_PICKAXE
[05:59:09] [Server thread/ERROR]: Error occurred while enabling ExtraHardMode v3.14.alpha-2c99465 (Is it up to date?)
java.lang.IllegalArgumentException: ExtraHardMode.World Rules.Mining.Inhibit Tunneling.Amount of Stone Tool Can Mine (Tool@Blocks) expects MATERIAL_LIST but got java.util.ArrayList
	at com.extrahardmode.service.config.MultiWorldConfig.set(MultiWorldConfig.java:168) ~[?:?]
	at com.extrahardmode.config.RootConfig.load(RootConfig.java:117) ~[?:?]
	at com.extrahardmode.config.RootConfig.starting(RootConfig.java:56) ~[?:?]
	at com.extrahardmode.ExtraHardMode.registerModule(ExtraHardMode.java:286) ~[?:?]
	at com.extrahardmode.ExtraHardMode.onEnable(ExtraHardMode.java:115) ~[?:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[spigot-1.14.3.jar-2019-06-25-0522:git-Spigot-595711b-e8b39d4]
	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:352) [spigot-1.14.3.jar-2019-06-25-0522:git-Spigot-595711b-e8b39d4]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:416) [spigot-1.14.3.jar-2019-06-25-0522:git-Spigot-595711b-e8b39d4]
	at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugin(CraftServer.java:458) [spigot-1.14.3.jar-2019-06-25-0522:git-Spigot-595711b-e8b39d4]
	at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugins(CraftServer.java:372) [spigot-1.14.3.jar-2019-06-25-0522:git-Spigot-595711b-e8b39d4]
	at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:439) [spigot-1.14.3.jar-2019-06-25-0522:git-Spigot-595711b-e8b39d4]
	at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:258) [spigot-1.14.3.jar-2019-06-25-0522:git-Spigot-595711b-e8b39d4]
	at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:764) [spigot-1.14.3.jar-2019-06-25-0522:git-Spigot-595711b-e8b39d4]
	at java.lang.Thread.run(Thread.java:834) [?:?]

Can be fixed with (for example)

        Amount of Stone Tool Can Mine (Tool@Blocks):
        - DIAMOND_PICKAXE@64
        - IRON_PICKAXE@32
commented

Can you try disabling this feature? I wonder if the other list types work.

I've converted everything using BlockTypeList to List, but since the config also seems to look for List<> types, it may catch it in that accidentally. In this case, it's probably because of the @64 syntax which is no longer valid, so I guess I'll also see how it's generating the default config as well.

commented

Wait, if I read your issue properly, are you saying the issue is resolved when you append things like @64?

commented

Yes. The clean install produced:

Amount of Stone Tool Can Mine (Tool@Blocks):

but the items were of the form

  • TOOL

without @blocks. So the corrected form worked, in the sense that it produced no error. I have not (yet) tested that the tools actually work as expected. There are so many changes to (100+) plugins for Spigot 1.14.x that I am currently just checking for start-up errors.

commented

well it won't work that's for sure but it's interesting to see that resolved the issue, hmm....

commented

Spigot 1.14.3
EHM 3.14.alpha-3fc941c

Server started without errors. Yay!