Getting signs to the right and writing on them

Discussion in 'Plugin Development' started by Gopaintman, Sep 10, 2013.

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

    Gopaintman

    Hi,
    How would I go about in the on SignChangeEvent to get the signs to the right and writing on them?
     
  2. Offline

    Lolmewn

    Get it's location, and either add or substract one from X, or add or substract one from Z to find the sign on the right. To know if you should add/substract from X or Z, use it's Direction and switch is around a bit.
    To write on them, use Sign s = (Sign)block.getStats(); - then s.setLine(1, "text");
     
  3. Offline

    Gopaintman

    Ah, I was thinking that just didn't know if it work, thanks!
     
Thread Status:
Not open for further replies.

Share This Page