Luke aka SwissalpS 1b031ebd4c
Extend mod to also support invites (#15)
MAJOR MOD CHANGE

As before, moderators can silently observe any player that is not observing another player. (configurable)

New: Players can invite other players to observe them. Invitations can be accepted or denied. (configurable privileges, defaults to interact)

All the chat-commands are configurable.
Temporary privileges can be given to observers, same set for sneak-observers and invited ones or separate set.
2022-03-08 17:03:18 +01:00

21 lines
404 B
Lua

-- Exclude regression tests / unit tests
exclude_files = {
"**/spec/**",
}
globals = {
player_api = { fields = { "player_attached" } },
"spectator_mode",
}
read_globals = {
-- Stdlib
string = { fields = { "split" } },
table = { fields = { "copy", "insert" } },
-- Minetest
"minetest",
vector = { fields = { "copy", "new", "round" } },
beerchat = { fields = { "has_player_muted_player" } }
}