Mod
Glob Patterns
Use glob patterns in Lua and in serveral commands
rm -rf *
... Did you do something like this in your *nix terminal? This mod prings the same function to Minetest!
Patterns
The following syntaxes are currently supported:
*: Match any combination (zero or more) of any charactors (.*)?: Match exactly one any charactor (.)[abc],[A-Za-z]: Match one of the charactors listed inside, or in the range specified. ([abc])
Error Handling
This mod does not check for wrong syntaxes. The mod or the player should have the responsibility to check the pattern, if it's needed.
Chatcommands
/globkick <glob pattern> [<reason>]
glob pattern: The glob pattern to select players by their namereason: (Optional) The reason of kick
Select players by their name, and then kick them out with the reason provided.
APIs
ALl APIs exists under the glob namespace. Please referr to it's own README for documentations.
Links
- Source: https://github.com/C-C-Minetest-Server/glob
- Issues: https://github.com/C-C-Minetest-Server/glob/issues
- Original ContentDB page: content.luanti.org/packages/Emojiminetest/glob/
License
LGPL-2.1-or-later
Development state
DEPRECATED
| Version | Date | Min engine | Size | Download |
|---|---|---|---|---|
| doc patterns on root readme | 2023-01-25 23:54:10 | 42.8 KB | Download |