Plugin Question

Discussion in 'Plugin Development' started by duckie33, Mar 9, 2012.

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

    duckie33

    (sorry for being a noob)

    So say i wanted to do something like

    Code:
    public boolean Thingy() {
     
    if ((Line of a sign) = "blabla"
    {
    return true;
    etc.
    
    How would i write (Line of a sign)?
     
  2. Use the SignChangeEvent ;)


    Code:java
    1. public void onSignChange(SignChangeEvent event)
    2. { if(e.getLine(0).equals("SOMETHING")){
    3. //STUFF HERE
    4. }
    5. }
     
    Jozeth and duckie33 like this.
  3. Offline

    duckie33

    Thank you very much, still learning to use bukkit :)
     
  4. no problem mate ;)
     
Thread Status:
Not open for further replies.

Share This Page