Auto-Update signs

Discussion in 'Plugin Development' started by A5H73Y, Dec 24, 2012.

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

    A5H73Y

    Hey all, I want to add a feature to my plugin to display realtime stats onto a sign that has [Parkour] on the first line (rather than the x,y and z pos). If this is possible then please help :) If you dont understand this is kinda the thing I want
    [Parkour]
    (course)
    Views
    100

    Anyone? :/

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
  2. Offline

    MP5K

    Hello A5H73Y,
    1. Save the Sign location to a HashMap / List / config / etc.
    2. Use a Repeating Task (every X Ticks)
    3. Obtain an instance of the signs @ the Location (1.)
    4. Update sign text

    Hope i could help you :)
     
  3. Offline

    A5H73Y

    I said without the need for locations? (If possible)
    Can i not check for all the signs containing [Parkour] in the first line or something..?
     
  4. Offline

    MP5K

    yes you could use the player interact event or check every block on the whole world. (with would be very laggy)
     
  5. Offline

    fireblast709

    You can get the tile entities per chunk, and sign is a tile entity
     
  6. Offline

    MP5K

    [offtropic]
    really :D what can you obtain else? (torches?)
     
  7. Offline

    fireblast709

    Brewingstands, chests, mobspawners, beacons, dispensers, furnace, jukebox, noteblocks and skulls
     
    MP5K likes this.
Thread Status:
Not open for further replies.

Share This Page