Skip to content
Snippets Groups Projects
Unverified Commit 1ff99d07 authored by Thomas Rudin's avatar Thomas Rudin Committed by GitHub
Browse files

Merge pull request #4 from SwissalpS/patch-1

add description to search command
parents bac53dc7 f4736283
No related branches found
No related tags found
No related merge requests found
......@@ -155,6 +155,8 @@ local http, url
-- chatcommand
minetest.register_chatcommand("search", {
description = "Search for shops or bones near you. Syntax: /search [bones|shop] [<query>|*]\n"
.. "e.g. /search bones *"
func = function(playername, param)
local _, _, type, query = string.find(param, "^([^%s]+)%s+([^%s]+)%s*$")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment