Development Assistance need help with making a plugin!

Discussion in 'Plugin Help/Development/Requests' started by yourmaster01, Mar 1, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    yourmaster01

    Hey all i am trying to make a plugin that when a player goes to make a chestshop shop sign it check the value of the price in a config file and either allows the creation of the sign or denys it if over priced. If you know how to do this and are willing to help please let me know. Thanks!
     
  2. Offline

    pie_flavor

    @yourmaster01 Listen for a SignChangeEvent. Make sure that in your EventHandler annotation, you set your priority to EventPriority.LOWEST so you go before the actual chest shop plugin. Then, just parse the line that the price is on into an int, check it against the config, and maybe execute breakNaturally() on the sign, or just cancel the event.
     
Thread Status:
Not open for further replies.

Share This Page