reach players which refuse communcation attems via public chat with a formspec
This repository has been archived on 2024-02-14. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
tour 509b15ee00 demo chat_help formspec
will most likely break on other screen sizes
2024-01-05 17:04:17 +01:00
.gitignore added some specs 2024-01-03 13:50:20 +01:00
.luacheckrc add luacheck 2024-01-04 00:21:21 +01:00
chatcommands.lua escape formspec defaults everywhere! 2024-01-05 13:42:26 +01:00
init.lua added privs 2024-01-03 16:42:21 +01:00
mod.conf added some specs 2024-01-03 13:50:20 +01:00
predefined_formspecs.lua add chat_help and replant_help formspec 2024-01-04 00:10:38 +01:00
readme.md add chatcommand params (#8) 2024-01-04 14:50:52 +01:00
settingtypes.txt added privs 2024-01-03 16:42:21 +01:00
show-receive.lua demo chat_help formspec 2024-01-05 17:04:17 +01:00
specs.lua demo chat_help formspec 2024-01-05 17:04:17 +01:00
todo.txt demo chat_help formspec 2024-01-05 17:04:17 +01:00

chat_formspec

this mod provides a way to reach players which refuse communication attempts via public chat by sending them a formspec

usage

This mod adds two chat-commands which don't expect parameters:

  • chat_formspec [<playername>[,<predefined>]] which will provide a way to show a player a set of predefined formspecs playername (optional): will prefill the field of the player to whom the formspec shall be shown predefined (optional): if valid, it will skip the selection formspec and directly jump to the editor for the preset formspec
  • chat_formspec_custom [<playername>[,<formspec>]] will allow to send newly created formspec. (e.g. a formspec given by a string) playername (optional): will prefill the field of the player to whom the formspec shall be shown formspec (optional): will skip the gui and send the given formspec to the specified player

privs to allow access to these chat-commands can be changed in the settings.

this mod aims to be self-explanatory, if anything is unclear, feel free to open a ticket :-)

predefined formspecs

so far all formspecs are hardcoded. If there is a need to add more of them / allow to add them during runtime, please open a ticket