1
0
mirror of https://gitlab.com/rubenwardy/awards.git synced 2024-11-18 16:30:32 +01:00
awards/unified_inventory.lua

14 lines
332 B
Lua
Raw Normal View History

2016-08-01 21:38:19 +02:00
if minetest.get_modpath("unified_inventory") ~= nil then
2017-02-21 08:45:45 +01:00
local S = awards.gettext
2016-08-01 21:38:19 +02:00
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