mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-05 01:03:44 +01:00
14 lines
351 B
Lua
14 lines
351 B
Lua
if minetest.get_modpath("unified_inventory") ~= nil then
|
|
local S = minetest.get_translator("awards")
|
|
|
|
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
|