Development Assistance How to code this specific plugin

Discussion in 'Plugin Help/Development/Requests' started by Chromify, Aug 23, 2015.

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

    Chromify

    So I want to code this plugin where if I mine a block in a place in my server if I were a normal player (ex: prison mine) then it will play the item_pickup sound. But how would it look like in the code? Please show me the code. :)
     
  2. Offline

    BizarrePlatinum

    @Chromify Simple really. Using the BlockBreakEvent, you would then test the permissions of the player or if they're not op or however you want to do it. If they don't have that permission, you play the sound at the player's location. If not, do nothing.
     
Thread Status:
Not open for further replies.

Share This Page