Distance Condition and related conditions do not accept placeholders
To test:
TargetConditions:
- distance{d=><caster.var.radius>}
This works fine when a regular number is parsed, but it returns this error:
[01:28:21 WARN]: [MythicMobs] Failed to construct condition distance{d=>"<caster.var.radius>"}
[01:28:21 WARN]: java.lang.reflect.InvocationTargetException
[01:28:21 WARN]: at jdk.internal.reflect.GeneratedConstructorAccessor87.newInstance(Unknown Source)
[01:28:21 WARN]: at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[01:28:21 WARN]: at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
[01:28:21 WARN]: at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
[01:28:21 WARN]: at MythicMobs-5.4.4-SNAPSHOT.jar//io.lumine.mythic.core.skills.SkillExecutor.getCondition(SkillExecutor.java:509)
[01:28:21 WARN]: at MythicMobs-5.4.4-SNAPSHOT.jar//io.lumine.mythic.core.skills.MetaSkill.<init>(MetaSkill.java:125)
[01:28:21 WARN]: at MythicMobs-5.4.4-SNAPSHOT.jar//io.lumine.mythic.core.skills.SkillExecutor.loadSkills(SkillExecutor.java:106)
[01:28:21 WARN]: at MythicMobs-5.4.4-SNAPSHOT.jar//io.lumine.mythic.core.config.ConfigExecutor.load(ConfigExecutor.java:229)
[01:28:21 WARN]: at MythicMobs-5.4.4-SNAPSHOT.jar//io.lumine.mythic.core.config.ConfigExecutor.load(ConfigExecutor.java:39)
[01:28:21 WARN]: at MythicMobs-5.4.4-SNAPSHOT.jar//io.lumine.mythic.bukkit.utils.plugin.ReloadableModule.reload(ReloadableModule.java:19)
[01:28:21 WARN]: at MythicMobs-5.4.4-SNAPSHOT.jar//io.lumine.mythic.bukkit.commands.ReloadCommand.doReloadPart1(ReloadCommand.java:113)
[01:28:21 WARN]: at MythicMobs-5.4.4-SNAPSHOT.jar//io.lumine.mythic.bukkit.commands.ReloadCommand.onCommand(ReloadCommand.java:51)
[01:28:21 WARN]: at MythicMobs-5.4.4-SNAPSHOT.jar//io.lumine.mythic.bukkit.utils.commands.Command.onCommand(Command.java:64)
[01:28:21 WARN]: at MythicMobs-5.4.4-SNAPSHOT.jar//io.lumine.mythic.bukkit.utils.commands.Command.onCommand(Command.java:61)
[01:28:21 WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
[01:28:21 WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155)
[01:28:21 WARN]: at org.bukkit.craftbukkit.v1_20_R1.CraftServer.dispatchCommand(CraftServer.java:1007)
[01:28:21 WARN]: at org.bukkit.craftbukkit.v1_20_R1.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:64)
[01:28:21 WARN]: at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:265)
[01:28:21 WARN]: at net.minecraft.commands.CommandDispatcher.performCommand(CommandDispatcher.java:324)
[01:28:21 WARN]: at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:308)
[01:28:21 WARN]: at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:2354)
[01:28:21 WARN]: at net.minecraft.server.network.PlayerConnection.lambda$handleChatCommand$21(PlayerConnection.java:2314)
[01:28:21 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.b(IAsyncTaskHandler.java:59)
[01:28:21 WARN]: at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
[01:28:21 WARN]: at net.minecraft.server.TickTask.run(TickTask.java:18)
[01:28:21 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.d(IAsyncTaskHandler.java:153)
[01:28:21 WARN]: at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(IAsyncTaskHandlerReentrant.java:24)
[01:28:21 WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1339)
[01:28:21 WARN]: at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197)
[01:28:21 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.x(IAsyncTaskHandler.java:126)
[01:28:21 WARN]: at net.minecraft.server.MinecraftServer.bg(MinecraftServer.java:1316)
[01:28:21 WARN]: at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1309)
[01:28:21 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.c(IAsyncTaskHandler.java:136)
[01:28:21 WARN]: at net.minecraft.server.MinecraftServer.p_(MinecraftServer.java:1287)
[01:28:21 WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1175)
[01:28:21 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:318)
[01:28:21 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)
[01:28:21 WARN]: Caused by: java.lang.NumberFormatException: For input string: ""<caster.var.radius>""
[01:28:21 WARN]: at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2054)
[01:28:21 WARN]: at java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
[01:28:21 WARN]: at java.base/java.lang.Double.parseDouble(Double.java:651)
[01:28:21 WARN]: at java.base/java.lang.Double.valueOf(Double.java:614)
[01:28:21 WARN]: at MythicMobs-5.4.4-SNAPSHOT.jar//io.lumine.mythic.bukkit.utils.numbers.RangedDouble.<init>(RangedDouble.java:28)
[01:28:21 WARN]: at MythicMobs-5.4.4-SNAPSHOT.jar//io.lumine.mythic.core.skills.conditions.all.DistanceCondition.<init>(DistanceCondition.java:24)
[01:28:21 WARN]: ... 38 more
If the condition contains a placeholder of any sort. Many other conditions also have this issue.