How to tell when player right clicks sign with no items in hand?

Discussion in 'Plugin Development' started by flyslasher, Feb 23, 2011.

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

    flyslasher

    How do you do it?
     
  2. Offline

    Edward Hand

    The CommandSigns plugin linked to in my footer comes with attached source-code. Perhaps that can be of some use to you.
     
  3. Offline

    flyslasher

    Thanks for the source! I actually tried making it already and for whatever reason it would not go past
    Code:
    if( block.getTypeId() == 63 || block.getTypeId() == 68 )
    But I changed it to what you had which was
    Code:
    if( block.getType().equals( Material.WALL_SIGN ) || block.getType().equals( Material.SIGN_POST ) )
    I also made some other changes but it works now! Thanks :p
     
Thread Status:
Not open for further replies.

Share This Page