Creating automatic updating signs

Discussion in 'Plugin Development' started by cfil360, Dec 6, 2013.

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

    cfil360

    I am trying to create signs that will update a player count, but i can't get it to work. I have tried sign.update(true) but get no satisfying results.
     
  2. Offline

    HyrulesLegend

    sign.update();
     
  3. Offline

    cfil360

    Max_The_Link_Fan this will work but what about when the server is reloaded. How does it know which signs it is updting.
     
  4. Offline

    xTrollxDudex

  5. Offline

    Garris0n

    Save it somewhere. The easiest way is a config file.
     
  6. Offline

    cfil360

    Garris0n xTrollxDudex I have tried, but when i try to cast the block state from gettting the location of a block from the config to a sign it doesn't work.
     
  7. Offline

    xTrollxDudex

    cfil360
    Wrong sign then, import the block sign, not the material sign.
    PHP:
    // difference:
    org.bukkit.block.Sign // correct
    org.bukkit.material.Sign // incorrect
     
Thread Status:
Not open for further replies.

Share This Page