Skip to content

Commit 6a35acb

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents aad5f70 + 1beb285 commit 6a35acb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/common/src/main/kotlin/com/willfp/libreforge/commands/CommandTrigger.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package com.willfp.libreforge.commands
22

33
import com.willfp.eco.core.EcoPlugin
44
import com.willfp.eco.core.command.impl.Subcommand
5+
import com.willfp.eco.util.formatEco
56
import com.willfp.libreforge.Dispatcher
67
import com.willfp.libreforge.GlobalDispatcher
78
import com.willfp.libreforge.get
@@ -62,7 +63,8 @@ internal class CommandTrigger(
6263
return
6364
}
6465

65-
val value = args.getOrNull(2)?.toDoubleOrNull()
66+
val value = args.getOrNull(2)?.formatEco(Bukkit.getPlayer(dispatcherName), true)
67+
?.toDoubleOrNull()
6668

6769
for (dispatcher in dispatchers) {
6870
TriggerGroupCustom.create(trigger).dispatch(

0 commit comments

Comments
 (0)