InputExecutor is a simple and lightweight plugin which has a unique way of asking player input using a AnvilGUI.
The input can then be used to execute a server command.
Take for example the /shop search [filter] command from EconomyShopGUI-Premium.
There would be multiple ways of letting players know about this command:
- Either by simply telling players "Use command /shop search [filter] to search items"
![](https://user-images.githubusercontent.com/52633285/235501671-42ccd01e-a56b-44b1-8159-0713cd24b602.png)
![](https://user-images.githubusercontent.com/52633285/235507266-1dcdde00-0855-43fc-8ec0-c5d8130defbc.png)
![](https://user-images.githubusercontent.com/52633285/235508047-d9b3a638-ed38-4cea-b43a-371aa83d1a54.png)
- OR by creating a simple input-request and linking it to an NPC:
![](https://user-images.githubusercontent.com/52633285/235504116-95899be2-fc36-42e4-b5f6-d0b43e903f07.png)
![](https://user-images.githubusercontent.com/52633285/235505120-b556c473-75e9-44f0-95af-dbfb9346aa7e.png)
![](https://user-images.githubusercontent.com/52633285/235505610-cb18472e-4dbf-4bb4-97f0-bc3822d9cad3.png)
Using the latter method it is easier for the player.
They do not have to remember the command nor the arguments, they just click the NPC and the rest will follow thru the input-request.
We will take the example from above into place.
The full command of the NPC above is input player:<p> request:'§9§lEnter search filter' command:'p:shop search %input%'
, lets take a closer look at the command arguments.
player:<p>
- This will open the input-request for the given player. In this case it will be the player clicking the NPC.request:'§9§lEnter search filter'
- The question to ask the playercommand:'p:shop search %input%'
- The command executed as the console when the player enters the input.- You may use the following placeholders:
%input%
- Replaced with the input the player has entered inside the AnvilGUI%player%
- Replaced with the player name which has entered the input
- Aditionally you can start the command with
p:
to execute the command as the player instead of console.
- You may use the following placeholders: