Compare commits
2 Commits
d36ce7ff1c
...
e83812f006
Author | SHA1 | Date | |
---|---|---|---|
e83812f006 | |||
13f8f98e91 |
18
README.md
18
README.md
@ -7,11 +7,11 @@ Information
|
|||||||
-----------
|
-----------
|
||||||
|
|
||||||
This mod attempts to be an improvement usefully essentials commands
|
This mod attempts to be an improvement usefully essentials commands
|
||||||
as a light version of some other tools like names-per-ip, global messages, hacks,
|
as a featured version of some other tools etc etc etc,
|
||||||
biome/stuffs management, player management etc etc etc
|
**for more featured check `governor` and `authrx` minenux versions mods**
|
||||||
|
on the informations below!
|
||||||
|
|
||||||
This mod has some UI menues but almost all the tasks are done using
|
![](screenshot.png)
|
||||||
commands.
|
|
||||||
|
|
||||||
## Technical info
|
## Technical info
|
||||||
-----------------
|
-----------------
|
||||||
@ -20,6 +20,14 @@ 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 |
|
||||||
@ -41,7 +49,7 @@ by other mods some already new but similar to other mods.
|
|||||||
| `/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>]` | rollback (& server) | biome (& server) | Shows the current(or provided name) biome info | If no assentials privs, any player wil be able, `biome` privilege works if confg params are set, otherwise admin only |
|
| `/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 |
|
| `/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 |
|
||||||
| `/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 |
|
||||||
|
9
init.lua
9
init.lua
@ -39,6 +39,10 @@ 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",
|
||||||
@ -55,8 +59,7 @@ 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("warning", "[Essentials] Versions doesnt match!")
|
minetest.log("error", "[Essentials] Versions doesnt match! something wrong seems YOU ARE USING OLDER VERSION!")
|
||||||
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
|
||||||
@ -68,7 +71,7 @@ minetest.after(0, function()
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
core.chat_send_all("[Essentials] Please, add mod \'essentials\' to \"secure.trusted_mods\" for checking an updates!")
|
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")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user