ADMIN featured mod
Go to file
mckaygerhard 4383e656fa LICENSED under CC-BY-SA-NC 4.0 by mckaygerhard and mckayshiroy 2023-06-22 00:15:34 -04:00
LICENSE.txt LICENSED under CC-BY-SA-NC 4.0 by mckaygerhard and mckayshiroy 2023-06-22 00:15:34 -04:00
README.md featured geoip, check if already provided 2023-06-20 11:43:13 -04:00
commands.lua geoip part - the format for geopip now with unique name 2023-06-21 22:00:15 -04:00
depends.txt initial work, namespace goberning and provide killme only if mod its abstend 2023-06-09 23:40:06 -04:00
geoip.lua geoip part - the format for geopip now with unique name 2023-06-21 22:00:15 -04:00
init.lua working geoip now, tune up sintax, organize code 2023-06-21 16:41:24 -04:00
mod.conf improve killme detection and feature sintax of code 2023-06-20 11:41:04 -04:00

README.md

minetest mod goberning

ADMIN mod, light version of various mods and extra tool for manage server

Information

This mod attempts to be an improvement administration combo, but minimized as a light version of some other tools like geoip, names-per-ip, antigrif, antihack, etc etc etc

LICENSE

(c) 2023 Lenz McKAY Gerhard mckaygerhard

CC-BY-SA-NC 4.0

it provides geoip mod for minetest

Lets you resolve geoip requests on a player

powered by IP Location Finder by KeyCDN

minetest.conf

# enable curl/http on that mod
secure.http_mods = geoip,governing

Commands

/geoip <playername>

privs

  • geoip can make a geoip query

Api

-- lookup command
governing.lookup("213.152.186.35", function(result)
	-- see "Geoip result data"
end)

-- overrideable callback on player join
governing.joinplayer_callback = function(playername, result)
	-- see "Geoip result data"
end

Geoip result data

{
  "status": "success",
  "description": "Data successfully received.",
  "data": {
    "geo": {
      "host": "213.152.186.35",
      "ip": "213.152.186.35",
      "rdns": "213.152.186.35",
      "asn": 49453,
      "isp": "Global Layer B.V.",
      "country_name": "Netherlands",
      "country_code": "NL",
      "region_name": null,
      "region_code": null,
      "city": null,
      "postal_code": null,
      "continent_name": "Europe",
      "continent_code": "EU",
      "latitude": 52.3824,
      "longitude": 4.8995,
      "metro_code": null,
      "timezone": "Europe/Amsterdam",
      "datetime": "2021-05-20 08:45:56"
    }
  }
}