mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-14 06:53:45 +01:00
13 lines
365 B
Lua
13 lines
365 B
Lua
if minetest.get_modpath("unified_inventory") then
|
|
local S = minetest.get_translator(minetest.get_current_modname())
|
|
unified_inventory.register_button("awards", {
|
|
type = "image",
|
|
image = "awards_ui_icon.png",
|
|
tooltip = S("Awards"),
|
|
action = function(player)
|
|
local name = player:get_player_name()
|
|
awards.show_to(name, name, nil, false)
|
|
end,
|
|
})
|
|
end
|