disable chat spamming
This commit is contained in:
parent
1919e32e9c
commit
bc2f245d6f
@ -78,7 +78,7 @@ minetest.register_chatcommand("wl_lb", {
|
||||
params = "",
|
||||
description = "list biomes",
|
||||
privs = {interact = true},
|
||||
func = function()
|
||||
func = function(name)
|
||||
|
||||
|
||||
local biom = water_life.get_biomes()
|
||||
@ -86,7 +86,7 @@ minetest.register_chatcommand("wl_lb", {
|
||||
if not biom then return end
|
||||
|
||||
for i=1,#biom,1 do
|
||||
minetest.chat_send_all(dump(i)..") "..dump(biom[i]))
|
||||
minetest.chat_send_player(name, dump(i)..") "..dump(biom[i]))
|
||||
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user