remremrem / HyperMerchant

Inventory GUI for HyperConomy and NPC trait for Citizens2
GNU General Public License v3.0
3 stars 11 forks source link

API? #8

Open dniym opened 8 years ago

dniym commented 8 years ago

I would like to make it automatically open the /shopmenu after a player has entered a shop. Is there a way to hook into merchantmenu and trigger a /shopmenu command?

My shops all have regions around them, and I can create code to detect them entering the region. However I don't know how to force open a shop menu! Thanks!

EDIT: as a workaround i used player.performCommand("shopmenu"); might want to add that as a feature though, maybe number of seconds before showing menu automatically, -1 don't auto open it 0 open as soon as they enter <some other number greater than 0> number of seconds to wait.