Solved [Simple] PlayerInteractEvent (signs)

Discussion in 'Plugin Development' started by McMhz, Aug 17, 2014.

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

    McMhz

    So, I know how to use signs and all, but I have this issue, if he stands 1 block from the sign it WOULD place a block, but that kindof fucks up the event for some reason.

    How do I fix this?..
    I guess you could use Iterators or for loops, Anyway.

    //Edit:
    I noticed this post was kindof un-clear, So I'm using a PlayerInteractEvent to check if a player clicks a sign, Then I use e.getBlock().getState() etc.

    So, you know when you click a sign you place a block, but if the player stands where the block would be placed, The event kindof de-activates.
     
  2. Offline

    Tecno_Wizard

    I believe this is a problem even with Essentials signs. You just have to ignore it, unless someone else knows how to fix it.
    McMhz
     
  3. Offline

    McMhz

    Tecno_Wizard
    Okay, That's odd tho ;c shouldn't happen.
    If anybody knows it, It'd be very appreciated if you helped me out.

    Okay, so I debugged it for a while, and I noticed whenever this shit happens the .getAction() is Right Click Air, Left click air.

    Thanks for your time anyways :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
Thread Status:
Not open for further replies.

Share This Page