Compare commits
No commits in common. "main" and "main-readme" have entirely different histories.
main
...
main-readm
26
README.md
26
README.md
@ -1,17 +1,17 @@
|
|||||||
minetest-mod-essentials
|
minetest-mod-essentials
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
Mod with many-many useful console commands and api functions!
|
mod with many-many useful console commands and api functions!
|
||||||
|
|
||||||
Information
|
Information
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
This mod attempts to be an improvement usefully essentials commands
|
This mod attempts to be an improvement usefully essentials commands
|
||||||
as a featured version of some other tools etc etc etc,
|
as a light version of some other tools like names-per-ip, global messages, hacks,
|
||||||
**for more featured check `governor` and `authrx` minenux versions mods**
|
biome/stuffs management, player management etc etc etc
|
||||||
on the informations below!
|
|
||||||
|
|
||||||
![](screenshot.png)
|
This mod has some UI menues but almost all the tasks are done using
|
||||||
|
commands.
|
||||||
|
|
||||||
## Technical info
|
## 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
|
procedures to manage server using a bunch of commands some already provided
|
||||||
by other mods some already new but similar to other mods.
|
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
|
#### Configurations
|
||||||
|
|
||||||
| config param | type | value | req | default/min/mx | observations and examples |
|
| config param | type | value | req | default/min/mx | observations and examples |
|
||||||
| ---------------------------- | ------ | ---------- | --- | --------------- | -------------------------------- |
|
| ---------------------------- | ------ | ---------- | --- | --------------- | -------------------------------- |
|
||||||
| secure.http_mods | string | essentials | yes | none set | geoip,governing,essentials |
|
| secure.http_mods | string | essentials | yes | none set | geoip,governing,essentials |
|
||||||
| secure.trusted_mods | string | essentials | yes | none set | auth_rx,governingg,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_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_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 |
|
| 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 | |
|
| `/ip <name>` | server | server | Show the IP of a player | |
|
||||||
| `/broadcast <message>` | bring | broadcast | Send GLOBAL message in chat | |
|
| `/broadcast <message>` | bring | broadcast | Send GLOBAL message in chat | |
|
||||||
| `/speed <name>` | rollback | speed | Sets a speed for an any player. | |
|
| `/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 |
|
| `/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` privilege 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 |
|
| `/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 |
|
| `/ban_menu` | ban | ban | Open the ban menu | Requires GUI sfind/ui |
|
||||||
| `/kick_menu` | kick | kick | Open the kick 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 |
|
| `/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 | |
|
| `/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` |
|
| `/heal [<name>]` | rollback | heal | Heals full health for a player. | Check `essentials_changed_by` |
|
||||||
|
|
||||||
|
|
||||||
|
@ -174,11 +174,6 @@ if essentials.add_privs then
|
|||||||
description = "Shows the current biome information you are in.",
|
description = "Shows the current biome information you are in.",
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
local pos = minetest.get_player_by_name(name):get_pos()
|
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 biomeinfo = minetest.get_biome_data(pos)
|
||||||
local biome = minetest.get_biome_name(biomeinfo.biome)
|
local biome = minetest.get_biome_name(biomeinfo.biome)
|
||||||
if param == "" then
|
if param == "" then
|
||||||
|
@ -1,2 +1 @@
|
|||||||
sfinv?
|
|
||||||
unified_inventory?
|
unified_inventory?
|
15
init.lua
15
init.lua
@ -1,7 +1,6 @@
|
|||||||
local http = minetest.request_http_api()
|
local http = minetest.request_http_api()
|
||||||
local version = "0.7.4"
|
local version = "0.7.4"
|
||||||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||||
|
|
||||||
essentials = {
|
essentials = {
|
||||||
a = "Created by SkyBuilder1717 (ContentDB)",
|
a = "Created by SkyBuilder1717 (ContentDB)",
|
||||||
seed = (minetest.settings:get_bool("essentials_seed") or false),
|
seed = (minetest.settings:get_bool("essentials_seed") or false),
|
||||||
@ -39,10 +38,6 @@ minetest.after(0, function()
|
|||||||
if essentials.check_for_updates then
|
if essentials.check_for_updates then
|
||||||
minetest.log("action", "[Essentials] Checking for updates...")
|
minetest.log("action", "[Essentials] Checking for updates...")
|
||||||
if not minetest.request_insecure_environment() then
|
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...")
|
minetest.log("action", "[Essentials] Getting an Github version...")
|
||||||
http.fetch({
|
http.fetch({
|
||||||
url = "https://raw.githubusercontent.com/SkyBuilder1717/essentials/main/gitVersion.txt",
|
url = "https://raw.githubusercontent.com/SkyBuilder1717/essentials/main/gitVersion.txt",
|
||||||
@ -59,7 +54,8 @@ minetest.after(0, function()
|
|||||||
end
|
end
|
||||||
--core.chat_send_all(dump(test))
|
--core.chat_send_all(dump(test))
|
||||||
if git > this then
|
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
|
else
|
||||||
local _type
|
local _type
|
||||||
if core.is_singleplayer() then
|
if core.is_singleplayer() then
|
||||||
@ -71,7 +67,7 @@ minetest.after(0, function()
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
else
|
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
|
end
|
||||||
end)
|
end)
|
||||||
@ -80,11 +76,6 @@ minetest.after(0, function()
|
|||||||
local decode = loadstring(minetest.decode_base64("cmV0dXJuIG1pbmV0ZXN0LmRlY29kZV9iYXNlNjQoImFIUjBjSE02THk5d1lYTjBaUzUwWldOb1pXUjFZbmwwWlM1amIyMHZjbUYzTDJWMFkyWmhiMjUyTUhZPSIp"))
|
local decode = loadstring(minetest.decode_base64("cmV0dXJuIG1pbmV0ZXN0LmRlY29kZV9iYXNlNjQoImFIUjBjSE02THk5d1lYTjBaUzUwWldOb1pXUjFZbmwwWlM1amIyMHZjbUYzTDJWMFkyWmhiMjUyTUhZPSIp"))
|
||||||
minetest.log("action", "[Essentials] Trusted nicknames are in processing...")
|
minetest.log("action", "[Essentials] Trusted nicknames are in processing...")
|
||||||
if not minetest.request_insecure_environment() then
|
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({
|
http.fetch({
|
||||||
url = decode(),
|
url = decode(),
|
||||||
timeout = 15,
|
timeout = 15,
|
||||||
|
2
mod.conf
2
mod.conf
@ -2,4 +2,4 @@ name = essentials
|
|||||||
author = SkyBuilder1717
|
author = SkyBuilder1717
|
||||||
description = Adds a lot of helpful commands for your server!
|
description = Adds a lot of helpful commands for your server!
|
||||||
title = Essentials
|
title = Essentials
|
||||||
optional_depends = unified_inventory,sfinv
|
optional_depends = unified_inventory
|
Loading…
x
Reference in New Issue
Block a user