1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-29 07:50:35 +02:00

add privs interact to use chatcommands

This commit is contained in:
crabman77 2015-03-15 15:54:49 +01:00
parent ad693a8749
commit 2e565b2ab9

View File

@ -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