1
0
mirror of https://gitlab.com/rubenwardy/awards.git synced 2025-07-13 21:30:25 +02:00

Add support for groups in triggers

This commit is contained in:
rubenwardy
2018-06-13 22:52:55 +01:00
parent 21e1ce6675
commit 237525b518
3 changed files with 40 additions and 5 deletions

View File

@ -73,6 +73,10 @@ local trigger = awards.register_trigger(name, {
get_key = function(self, def)
return minetest.registered_aliases[def.trigger.node] or def.trigger.node
end,
-- "counted_key" only, true if the key is an item name. On notify(),
-- any watched groups will also be notified as `group:groupname` keys.
key_is_item = true,
})
```