summaryrefslogtreecommitdiff
path: root/unified_inventory.lua
blob: 1042196a4bd7f1c0da73b20bdc014141f47497aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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