I do not know if it was suggested somewhere, but I think for some mods additional actions/permissions would be useful.
My suggestion therefore is to add a mod-setting like the following:
Code: Select all
data:extend{
{
type = "bool-setting",
name = "my-custom-action",
setting_type = "user-mod-action",
default_value = true,
}
}
Additionaly it can be managed with LuaPermssionGroup.allows_action("my-customu-action") and LuaPermssionGroup.set_allows_action("my-custom-action", true/false).
Kind regards,
Gerhard