capturetheflag/mods/ctf_match/chat.lua

14 lines
257 B
Lua
Raw Normal View History

2015-12-07 23:54:22 +00:00
minetest.register_privilege("ctf_match", {
description = "can skip matches"
})
2015-07-17 17:10:17 +00:00
minetest.register_chatcommand("ctf_next", {
description = "Skip to the next match",
privs = {
2015-12-07 23:54:22 +00:00
ctf_match = true
2015-07-17 17:10:17 +00:00
},
func = function(name, param)
ctf_match.next()
end
})