Sign Owner

Discussion in 'Plugin Development' started by KingFaris10, Apr 17, 2013.

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

    KingFaris10

    So I want it so you can get the creator of a sign. I really don't want to use a whole file just to store locations of every sign and the owner. Thank you.
     
  2. But saving the location in a persistent storage is the only way you can do it.
     
  3. Offline

    Spikes

    You could set a line to the Owner's name.

    I would do it with MySQL
     
  4. what if someone uses all the space on a sign? I wouldn't want to override the text of a player if I could do it differently.
     
  5. Offline

    Spikes

    Well then you have to use a persistent storage
     
  6. Offline

    KingFaris10

    Argh :/ Okay guys thanks. Personally even though it'd take up a lot of space, they should have like block.getOwner() or something and the data is stored in the world folder.
     
  7. Offline

    macguy8

    KingFaris10
    1) would take up wayyyyy too much space
    2) What about block.setTypeId? That'd cause it to return null, unless you want to also store the owning plugin. If you can find a efficient way that doesn't hog disk space, then submit a pull req to bukkit, but otherwise it's best to just store x, y, z, and owner in SQL
     
  8. Offline

    KingFaris10

    Well then again, if you saved it as a .yml file it wouldn't really take too much space. I doubt you'd have 2349324893248239483289 players breaking/placing blocks. Also, if you're saying it'd take too much space, wouldn't that make the method of saving it to a YML take up a lot of space. I don't really know how to code and insert tables to MySQL yet (I know how to use the statements etc. I just don't know the coding). I'm still learning from thenewboston :/
     
Thread Status:
Not open for further replies.

Share This Page