mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-27 19:57:31 +01:00
10 lines
337 B
Lua
10 lines
337 B
Lua
local S = minetest.get_translator(minetest.get_current_modname())
|
|
|
|
minetest.register_chatcommand("seed", {
|
|
description = S("Displays the world seed"),
|
|
params = "",
|
|
privs = {},
|
|
func = function(name)
|
|
minetest.chat_send_player(name, "Seed: ["..minetest.colorize(mcl_colors.GREEN, ""..minetest.get_mapgen_setting("seed")).."]")
|
|
end
|
|
}) |