2021-05-29 17:12:33 +03:00
|
|
|
local S = minetest.get_translator(minetest.get_current_modname())
|
2021-03-05 10:47:48 +02:00
|
|
|
|
|
|
|
minetest.register_chatcommand("seed", {
|
|
|
|
description = S("Displays the world seed"),
|
|
|
|
params = "",
|
|
|
|
privs = {},
|
|
|
|
func = function(name)
|
2022-05-15 12:15:55 +03:00
|
|
|
minetest.chat_send_player(name, "Seed: ["..minetest.colorize(mcl_colors.GREEN, ""..minetest.get_mapgen_setting("seed")).."]")
|
2021-03-05 10:47:48 +02:00
|
|
|
end
|
|
|
|
})
|