Solved setLine() does not work

Discussion in 'Plugin Development' started by spacemoehre, Aug 19, 2014.

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

    spacemoehre

    I do not know why, but it does not work... And there is no error....

    Code:java
    1. @EventHandler
    2. public void onPlayerInteract(PlayerInteractEvent e){
    3.  
    4. Player p = e.getPlayer();
    5.  
    6. if(e.getAction()==Action.RIGHT_CLICK_BLOCK){
    7. if(e.getClickedBlock().getState() instanceof Sign){
    8. Sign s = (Sign) e.getClickedBlock().getState();
    9. s.setLine(1,"Hallo");
     
  2. Offline

    teej107

    You should update the state of the sign.
     
  3. Offline

    spacemoehre

    thanks. ^^
     
  4. Offline

    Hoolean

    If this has solved your issue, please mark the topic as "Solved". :)
     
  5. Offline

    spacemoehre

  6. Offline

    Hoolean

    spacemoehre

    It's been a while but I think you will find that if you click Thread Tools near the title at the top of the page. :)
     
Thread Status:
Not open for further replies.

Share This Page