Finding signs

Discussion in 'Plugin Development' started by JJJollyjim, Oct 12, 2011.

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

    JJJollyjim

    I am rather new to Bukkit (and Java in general) development, and first would like to mention that BetterPHP's development tutorial series has helped me greatly.

    Anyway, I notice that alot of plugins find signs with [Something] written on them, and do something with them. I was wondering how to accomplish something like this. Would you use signChangeEvent and then store the locations of signs that match with getLine/getLines? Or is there a better way?

    Thanks in advance,
    JJJollyjim.
     
  2. Offline

    wwsean08

    they generally use the player interact event (specifically the right click event), then check if the sign has what they are looking for and if they do, do some action, if not, move on
     
  3. Offline

    JJJollyjim

    Great, Thanks!
     
Thread Status:
Not open for further replies.

Share This Page