Hi. I have a big problem: How can I get the IP of a player who is online at the moment. Is there any command like /list-ip or anything like this? If no, is it possible to make a mod who shows an admin the player IP's?
Regards,
Cooper97
minetest.register_chatcommand("getip", {
params = "<name>",
description = "Get IP of player",
privs = {privs = true},
func = function(name, param)
if minetest.get_player_by_name(param) == nil then
minetest.chat_send_player(name, "Player not found")
return
end
minetest.chat_send_player(name, "IP of " .. param .. " is ".. minetest.get_player_ip(param))
end,
})
Users browsing this forum: Bing [Bot] and 10 guests