Skip to content

Commit ec4e188

Browse files
authored
Fixed searchmaps map list setup command
It was changed previously because "ls *.bsp" returns error when maps with weird names are present. But being in the "ag" directory and moving the output of "ls maps/*.bsp" to the "allmaps.txt" file, writes all the maps with the "maps/" prefix, which doesn't work as the plugin just takes the whole line removing the ".bsp" and passes it to the agmap command, and "agmap maps/something" doesn't work obviously.
1 parent 3fd7c91 commit ec4e188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Credits: this is Quaker's ([@skyrim](https://github.com/skyrim)) [plugin](https:
1515

1616
searchmaps provides commands to search through the maps installed on the server, with an optional search term and pagination.
1717
For this version to work, you have to create an _allmaps.txt_ file (in _addons/amxmodx/configs_) containing a map per line, with all the maps you want.
18-
Doing `cd` into your _ag_ folder and executing `ls maps/*.bsp >> addons/amxmodx/configs/allmaps.txt` should be enough for this plugin to work correctly.
18+
Doing `cd` into your _ag/maps_ folder and executing `ls -- *.bsp >> ../addons/amxmodx/configs/allmaps.txt` should be enough for this plugin to work correctly.
1919

2020
## speclist
2121

0 commit comments

Comments
 (0)