Right Clicking Blocks

Discussion in 'Plugin Development' started by Chibbey, Feb 10, 2014.

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

    Chibbey

    Hello, So Im making my own wardrobe plugin for my friends server. I know how to do it all its just one thing I cant do cause Ive never tried to do it. So. There will be a Workbench called wardrobe in slot 8. What I don't know what to do is how do I check if they RIGHT-CLICKED the workbench in their inventory. I know it would be a InventoryClickEvent. Would it have something to do with e.getAction() but I do not know how to use getAction() in the InventoryClickEvent. Please help me.

    What I am having problems with:
    - Right clicking a block IN your HOTBAR
     
  2. Offline

    Desle

    Chibbey
    PlayerInteractEvent and check for right item in hand and action
     
  3. Offline

    Chibbey

    Desle Oh yea I do remember doing this before... Thanks for the reminder!
     
Thread Status:
Not open for further replies.

Share This Page