AngelliaX / FootJob

Creating a portal that execute command as console and player
Apache License 2.0
9 stars 6 forks source link

Please put delay after crossing area #6

Open janiiik opened 3 years ago

janiiik commented 3 years ago

When you stand in area and execute command for example (give player something) it will be executed as long as player stands in this area. Would be great if you can put delay (probably configurable) so you get your reward only once in a 10 seconds or so, not sure how this will act when multiple players cross area in same time.

janiiik commented 3 years ago

or basically maybe would be enought if you execute command when you cross the area not when you actually standing in it.

janiiik commented 3 years ago

i was trying to do it myself in RepeatingTask.php, but just not enought experience... would be great if you can add option to fire event only once per area entry.