Solved A bug that has stumped me: Please Help

Discussion in 'Plugin Development' started by SuperAidSlayZ, May 4, 2016.

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

    SuperAidSlayZ

    So I hit a little road block and I can't figure out what to do. I'm creating a plugin that will check to see if a player has placed a banned block then check if that player has the permission to place that block, if they don't they can't place it, if they are able to then they can place it and in the server console it says <player> has placed <blockname>. The problem is that I want to make it so the player isn't able to place a lava_bucket, but it doesn't work, the player can still place lava. The circled parts, are the parts I believe cause this bug, so please tell me what I'm doing wrong.
     

    Attached Files:

  2. Offline

    567legodude

    @SuperAidSlayZ For lava buckets use PlayerInteractEvent, and if they interact while holding a lava bucket, then cancel the event and tell them they can't use it.
     
  3. Offline

    SuperAidSlayZ

    Ok thank you
     
Thread Status:
Not open for further replies.

Share This Page