FancyMcPlugins / FancyNpcs

FancyNpcs is a simple, lightweight and fast npc plugin using packets
https://modrinth.com/plugin/fancynpcs
MIT License
98 stars 23 forks source link

Can you add a feature to limit the number of times a command can be triggered? #129

Open Nothentai opened 4 days ago

Nothentai commented 4 days ago

Currently, there is the /npc server_command command, but it seems to lack a feature to limit the number of times it can be triggered. I sincerely hope you can add such a feature so that I can ensure each player can only trigger the command a specified number of times.

If a limit on the number of triggers is added, it would be even better if a corresponding message could be displayed when the player has exhausted their attempts.

PS: Because my English is not good, the above content was translated using translation software. Please forgive any inaccuracies.

OliverSchlueter commented 3 days ago

You can already set the interaction cooldown (https://fancyplugins.de/docs/fn-commands.html#npc-interaction-cooldown), where you can specify, how long a player needs to wait between interactions (for example the server_command)