We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aad5f70 + 1beb285 commit 6a35acbCopy full SHA for 6a35acb
core/common/src/main/kotlin/com/willfp/libreforge/commands/CommandTrigger.kt
@@ -2,6 +2,7 @@ package com.willfp.libreforge.commands
2
3
import com.willfp.eco.core.EcoPlugin
4
import com.willfp.eco.core.command.impl.Subcommand
5
+import com.willfp.eco.util.formatEco
6
import com.willfp.libreforge.Dispatcher
7
import com.willfp.libreforge.GlobalDispatcher
8
import com.willfp.libreforge.get
@@ -62,7 +63,8 @@ internal class CommandTrigger(
62
63
return
64
}
65
- val value = args.getOrNull(2)?.toDoubleOrNull()
66
+ val value = args.getOrNull(2)?.formatEco(Bukkit.getPlayer(dispatcherName), true)
67
+ ?.toDoubleOrNull()
68
69
for (dispatcher in dispatchers) {
70
TriggerGroupCustom.create(trigger).dispatch(
0 commit comments