forked from VoxeLibre/VoxeLibre
fixes
This commit is contained in:
parent
658028e90a
commit
cc0ed855a9
|
@ -103,7 +103,7 @@ end
|
|||
function mcl_commands.register_basic_command(name, def)
|
||||
local func
|
||||
if def.params then
|
||||
local funcparams =
|
||||
local funcparams = ""
|
||||
return
|
||||
else
|
||||
mcl_commands.registered_commands[name] = {type = "basic", description = def.desc, privs = def.privs}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
local seed = minetest.get_mapgen_setting("seed")
|
||||
|
||||
minetest.register_chatcommand("seed", {
|
||||
description = S("Displays the world seed"),
|
||||
params = "",
|
||||
privs = {},
|
||||
func = function(name)
|
||||
minetest.chat_send_player(name, "Seed: "..minetest.get_mapgen_setting("seed"))
|
||||
minetest.chat_send_player(name, "Seed: "..seed)
|
||||
end
|
||||
})
|
Loading…
Reference in New Issue