Can't update signs after i left the world.

Discussion in 'Plugin Development' started by stink123456, Apr 6, 2014.

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

    stink123456

    Hello there,
    I am writing a minigame with the games in a different world then the lobby world, after i start a game with me in it and end that game again, i cant update the signs anymore in the lobby world. I have no idea what the cause of this is. setLine works fine because when i get the lines it returns the right ones. I hope some of you have an idea!
    Thank you!
     
  2. A possibility is that you didn't update the sign.

    Code:java
    1. sign.update(true);
     
  3. Offline

    stink123456

    Thank you but that is certainly not the case, this is the method i use to set my lines:
    Code:java
    1. public void setLine(int line,String s){
    2. if(!this.sign.getChunk().isLoaded()){
    3. this.sign.getWorld().loadChunk(this.sign.getChunk());
    4. }
    5. this.sign.setLine(line, s);
    6. this.sign.update();
    7.  
    8. }
     
  4. Offline

    stink123456

    Bump! Is there something that can change with signs there variables that makes it not update anymore? I checked the location and the lines. Both work... Please help.

    Another bump.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
Thread Status:
Not open for further replies.

Share This Page