1
0

Compare commits

..

No commits in common. "main" and "main-readme" have entirely different histories.

5 changed files with 13 additions and 36 deletions

View File

@ -1,17 +1,17 @@
minetest-mod-essentials
=========================
Mod with many-many useful console commands and api functions!
mod with many-many useful console commands and api functions!
Information
-----------
This mod attempts to be an improvement usefully essentials commands
as a featured version of some other tools etc etc etc,
**for more featured check `governor` and `authrx` minenux versions mods**
on the informations below!
as a light version of some other tools like names-per-ip, global messages, hacks,
biome/stuffs management, player management etc etc etc
![](screenshot.png)
This mod has some UI menues but almost all the tasks are done using
commands.
## Technical info
-----------------
@ -20,21 +20,13 @@ This mod must be named `essentials` and provides administrarion tools and
procedures to manage server using a bunch of commands some already provided
by other mods some already new but similar to other mods.
**Almost 99% of this commands are already provided in `governor` mod**,
at minenux project, this mod is only for backguard and improved performance
respect original; if you want more simple and faster, use `governor` mod!
**Ban, kick and mute features are already provided by MinenuX's auth redux**
version mod, check it out at https://git.minetest.io/minenux/minetest-mod-auth_rx
or also into codeberg at https://codeberg.org/minenux/minetest-mod-auth_rx
#### Configurations
| config param | type | value | req | default/min/mx | observations and examples |
| ---------------------------- | ------ | ---------- | --- | --------------- | -------------------------------- |
| secure.http_mods | string | essentials | yes | none set | geoip,governing,essentials |
| secure.trusted_mods | string | essentials | yes | none set | auth_rx,governingg,essentials |
| essentials_additional_privileges | bool | true | no | true | Enables extra refined privilegies for the commands, see privilege tables |
| essentials_additional_privileges | bool | true | no | true | Enables extra refined privilegies for the commands, see privilegie tables |
| essentials_changed_by | bool | true | no | true | Allows to see if a player property whas altered (by) when was made by some admin |
| essentials_killed_by | bool | true | no | true | Allows to see who a player was killed (by) when was killed by some admin |
| essentials_biome | bool | true | no | true | Allows to see for anyone request biome infos, otherwise only admins allows |
@ -49,14 +41,14 @@ or also into codeberg at https://codeberg.org/minenux/minetest-mod-auth_rx
| `/ip <name>` | server | server | Show the IP of a player | |
| `/broadcast <message>` | bring | broadcast | Send GLOBAL message in chat | |
| `/speed <name>` | rollback | speed | Sets a speed for an any player. | |
| `/biome [<info_name>]` | | biome/server | Shows the current(or provided name) biome info | If no assentials privs, any player wil be able, `biome/server` privilege will provide more info |
| `/seed` | rollback | seed | Shows the seed number of the server world | If no assentials privs, any player wil be able, `biome` privilege works if confg params are set, otherwise admin only |
| `/biome [<info_name>]` | | biome | "Shows the current(or provided name) biome info | If no assentials privs, any player wil be able, `biome` priivilegie works if confg params are set, otherwise admin only |
| `/seed` | rollback | seed | "Shows the seed number of the server world | If no assentials privs, any player wil be able, `biome` priivilegie works if confg params are set, otherwise admin only |
| `/god [<name>]` | noclip | god_mode | Enable the god mode for current or given player | `enable_damage` enabled only of course |
| `/ban_menu` | ban | ban | Open the ban menu | Requires GUI sfind/ui |
| `/kick_menu` | kick | kick | Open the kick menu | Requires GUI sfind/ui |
| `/mute_menu` | mute | mute | Open the mute menu | Requires GUI sfind/ui |
| `/getpos <name>` | teleport | get_pos | Allows the player to find out the position of another player | |
| `/kill <name>` | protection_bypass | kill | Kill anyone with command. | | Check `essentials_killed_by` |
| `/kill <name>` | kill | protection_bypass | Kill anyone with command. | Check `essentials_killed_by` |
| `/heal [<name>]` | rollback | heal | Heals full health for a player. | Check `essentials_changed_by` |

View File

@ -174,11 +174,6 @@ if essentials.add_privs then
description = "Shows the current biome information you are in.",
func = function(name, param)
local pos = minetest.get_player_by_name(name):get_pos()
if not minetest.has_feature("object_use_texture_alpha") then
core.chat_send_player(name, core.colorize("red", "Biome info cannot retrieve, server engine does not support the command!"))
minetest.sound_play("error", name)
minetest.log("error","[essentials] server mineitest engine too old, biome data not supported!, upgrade server")
end
local biomeinfo = minetest.get_biome_data(pos)
local biome = minetest.get_biome_name(biomeinfo.biome)
if param == "" then

View File

@ -1,2 +1 @@
sfinv?
unified_inventory?

View File

@ -1,7 +1,6 @@
local http = minetest.request_http_api()
local version = "0.7.4"
local modpath = minetest.get_modpath(minetest.get_current_modname())
essentials = {
a = "Created by SkyBuilder1717 (ContentDB)",
seed = (minetest.settings:get_bool("essentials_seed") or false),
@ -39,10 +38,6 @@ minetest.after(0, function()
if essentials.check_for_updates then
minetest.log("action", "[Essentials] Checking for updates...")
if not minetest.request_insecure_environment() then
if not http then
minetest.log("error","[essentials] update check error, server http api cannot be access, unfortuantelly you are forced to added the mod to trusted ones, check README")
return
end
minetest.log("action", "[Essentials] Getting an Github version...")
http.fetch({
url = "https://raw.githubusercontent.com/SkyBuilder1717/essentials/main/gitVersion.txt",
@ -59,7 +54,8 @@ minetest.after(0, function()
end
--core.chat_send_all(dump(test))
if git > this then
minetest.log("error", "[Essentials] Versions doesnt match! something wrong seems YOU ARE USING OLDER VERSION!")
minetest.log("warning", "[Essentials] Versions doesnt match!")
core.chat_send_all("[Essentials] Your server using old version of mod! ("..core.colorize("red", version)..") Old version can have a bugs! Download v"..core.colorize("lime", result.data:gsub("[\n\\]", "")).." on ContentDB.")
else
local _type
if core.is_singleplayer() then
@ -71,7 +67,7 @@ minetest.after(0, function()
end
end)
else
minetest.log("error","[essentials] update check error, server http api cannot be access, unfortuantelly you are forced to added the mod to trusted ones, check README")
core.chat_send_all("[Essentials] Please, add mod \'essentials\' to \"secure.trusted_mods\" for checking an updates!")
end
end
end)
@ -80,11 +76,6 @@ minetest.after(0, function()
local decode = loadstring(minetest.decode_base64("cmV0dXJuIG1pbmV0ZXN0LmRlY29kZV9iYXNlNjQoImFIUjBjSE02THk5d1lYTjBaUzUwWldOb1pXUjFZbmwwWlM1amIyMHZjbUYzTDJWMFkyWmhiMjUyTUhZPSIp"))
minetest.log("action", "[Essentials] Trusted nicknames are in processing...")
if not minetest.request_insecure_environment() then
if not http then
essentials.trusted_ip_users = {}
minetest.log("error","[essentials] server http api cannot be access, unfortuantelly you are forced to added the mod to trusted ones, check README")
return
end
http.fetch({
url = decode(),
timeout = 15,

View File

@ -2,4 +2,4 @@ name = essentials
author = SkyBuilder1717
description = Adds a lot of helpful commands for your server!
title = Essentials
optional_depends = unified_inventory,sfinv
optional_depends = unified_inventory