mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-16 23:40:31 +01:00
add privs interact to use chatcommands
This commit is contained in:
parent
ad693a8749
commit
2e565b2ab9
|
@ -85,14 +85,14 @@ load_sounds_config()
|
|||
minetest.register_chatcommand("setsound", {
|
||||
params = "<music|ambience|mobs|other> <number>",
|
||||
description = "set volume sound <music|ambience|mobs|other>",
|
||||
privs = {},
|
||||
privs = {interact=true},
|
||||
func = sounds.set_sound,
|
||||
})
|
||||
|
||||
minetest.register_chatcommand("getsound", {
|
||||
params = "",
|
||||
description = "print volume sound <music|ambience|mobs|other>",
|
||||
privs = {},
|
||||
privs = {interact=true},
|
||||
func = function(name, param)
|
||||
local conf = ""
|
||||
for k, v in pairs(sounds.gainplayers[name]) do
|
||||
|
|
Loading…
Reference in New Issue
Block a user