9
0
mirror of https://github.com/Auxilor/EcoMenus.git synced 2025-12-19 15:09:20 +00:00

Fixed violation logging

This commit is contained in:
Auxilor
2023-06-04 12:39:03 +01:00
parent b594e08bdb
commit 490f15b7d2
2 changed files with 3 additions and 4 deletions

View File

@@ -68,7 +68,7 @@ class ConfigurableSlot(
val function = type.create( val function = type.create(
action, action,
plugin, plugin,
context.with("slot at row ${row}, column $column").with(section).with(typeName) context.with(section).with(typeName)
)?.toSlotAction() ?: continue )?.toSlotAction() ?: continue
onClick(clickType, function) onClick(clickType, function)

View File

@@ -31,9 +31,8 @@ class CommandSlotFunction(
Bukkit.dispatchCommand( Bukkit.dispatchCommand(
sender ?: player, sender ?: player,
PlaceholderManager.translatePlaceholders( PlaceholderManager.translatePlaceholders(
command, placeholderContext( command.replace("%player%", player.name),
player = player placeholderContext(player = player)
)
) )
) )
} }