Solved sign.setLine not working?

Discussion in 'Plugin Development' started by HyrulesLegend, Nov 10, 2013.

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

    HyrulesLegend

    Here's my code:
    Code:java
    1. if(sign.getLine(2).equals("2")) {
    2. sign.setLine(2, "25");


    I have code before this, any everything before this runs. There's nothing after those 2 lines, but before it I send a message to the player, and it sends it perfect. Any idea why this wouldn't be working?
     
  2. Offline

    AKMiner98

    Add "getServer().getPluginManager().registerEvents(this, this);" to your onEnable.
     
  3. Offline

    DreTaX

    Also make sure to UPDATE the sign.
     
  4. Offline

    Dread9Nought

    Code:
    if (sign.getLine(2).equals("2)) {
         sign.,setLine(2, "25");
         sign.update(false);
    }
    
    I forget what the boolean does
     
Thread Status:
Not open for further replies.

Share This Page