2019-03-07 21:14:30 +01:00
|
|
|
local S = minetest.get_translator("mcl_commands")
|
2017-01-12 16:10:57 +01:00
|
|
|
|
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())
|
2017-01-12 16:10:57 +01:00
|
|
|
|
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")
|
2017-01-12 16:10:57 +01:00
|
|
|
|
2021-03-05 09:47:48 +01:00
|
|
|
dofile(modpath.."/alias.lua")
|
2017-01-12 16:10:57 +01:00
|
|
|
|
|
|
|
|
2017-02-09 12:10:30 +01:00
|
|
|
minetest.register_chatcommand("list", {
|
2019-03-16 05:29:28 +01:00
|
|
|
description = S("Show who is logged on"),
|
2017-02-09 12:10:30 +01:00
|
|
|
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
|
|
|
|
})
|
|
|
|
|
2020-01-06 13:46:43 +01:00
|
|
|
|
2017-01-12 16:10:57 +01:00
|
|
|
|
2020-01-06 13:46:43 +01:00
|
|
|
|