diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecomenus/components/ConfigurableSlot.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecomenus/components/ConfigurableSlot.kt index 185b7ad..e22d217 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecomenus/components/ConfigurableSlot.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecomenus/components/ConfigurableSlot.kt @@ -68,7 +68,7 @@ class ConfigurableSlot( val function = type.create( action, plugin, - context.with("slot at row ${row}, column $column").with(section).with(typeName) + context.with(section).with(typeName) )?.toSlotAction() ?: continue onClick(clickType, function) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecomenus/slots/impl/SlotTypeCommand.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecomenus/slots/impl/SlotTypeCommand.kt index ecf137c..76d68a5 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecomenus/slots/impl/SlotTypeCommand.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecomenus/slots/impl/SlotTypeCommand.kt @@ -31,9 +31,8 @@ class CommandSlotFunction( Bukkit.dispatchCommand( sender ?: player, PlaceholderManager.translatePlaceholders( - command, placeholderContext( - player = player - ) + command.replace("%player%", player.name), + placeholderContext(player = player) ) ) }