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(
action,
plugin,
context.with("slot at row ${row}, column $column").with(section).with(typeName)
context.with(section).with(typeName)
)?.toSlotAction() ?: continue
onClick(clickType, function)

View File

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