mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-17 07:50:29 +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", {
|
minetest.register_chatcommand("setsound", {
|
||||||
params = "<music|ambience|mobs|other> <number>",
|
params = "<music|ambience|mobs|other> <number>",
|
||||||
description = "set volume sound <music|ambience|mobs|other>",
|
description = "set volume sound <music|ambience|mobs|other>",
|
||||||
privs = {},
|
privs = {interact=true},
|
||||||
func = sounds.set_sound,
|
func = sounds.set_sound,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_chatcommand("getsound", {
|
minetest.register_chatcommand("getsound", {
|
||||||
params = "",
|
params = "",
|
||||||
description = "print volume sound <music|ambience|mobs|other>",
|
description = "print volume sound <music|ambience|mobs|other>",
|
||||||
privs = {},
|
privs = {interact=true},
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
local conf = ""
|
local conf = ""
|
||||||
for k, v in pairs(sounds.gainplayers[name]) do
|
for k, v in pairs(sounds.gainplayers[name]) do
|
||||||
|
|
Loading…
Reference in New Issue
Block a user