1
0
Fork 0
VoxeLibre/mods/MISC/mcl_commands/init.lua

32 lines
706 B
Lua
Raw Normal View History

local S = minetest.get_translator("mcl_commands")
2019-03-08 20:22:01 +01:00
local mod_death_messages = minetest.get_modpath("mcl_death_messages")
2021-03-05 09:47:48 +01:00
local modpath = minetest.get_modpath(minetest.get_current_modname())
2021-03-05 09:47:48 +01:00
dofile(modpath.."/kill.lua")
dofile(modpath.."/setblock.lua")
dofile(modpath.."/seed.lua")
dofile(modpath.."/summon.lua")
dofile(modpath.."/say.lua")
2021-03-05 09:47:48 +01:00
dofile(modpath.."/alias.lua")
minetest.register_chatcommand("list", {
2019-03-16 05:29:28 +01:00
description = S("Show who is logged on"),
params = "",
privs = {},
func = function(name)
local players = ""
for _, player in ipairs(minetest.get_connected_players()) do
players = players..player:get_player_name().."\n"
end
minetest.chat_send_player(name, players)
end
})