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:
@@ -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)
|
||||||
|
|||||||
@@ -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)
|
||||||
)
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user