awards/unified_inventory.lua
2017-02-23 22:48:13 +00:00

14 lines
332 B
Lua

if minetest.get_modpath("unified_inventory") ~= nil then
local S = awards.gettext
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