Simple question about UUIDs.

Discussion in 'Plugin Development' started by MrMag518, Nov 11, 2012.

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

    MrMag518

    Ok, I'm currently working with UUIDs and I'm using SLAPI to save/load HashSet's into a .bin file.

    I am testing by dropping a block at the ground, then trying to pick it up. If it's dropped by a player with spawn rights it will cancel the pickup event. It works perfectly, but after I've reloaded/restarted the server whilst the entity is still at the ground, it stops working. (I can pick it up).

    So my question is, do entity UUIDs reset/change upon server restart/reload?
    Or may it be me doing something wrong?
     
  2. the UUID wont persists server restarts, but it should survive reloads
     
  3. I've heard that uuids stay true after a reset
     
  4. Offline

    fireblast709

    mollekake that is what I have been told as well
     
  5. Offline

    MrMag518

    You mean they still applies for the same entity after a restart? Or?
     
  6. Offline

    Sagacious_Zed Bukkit Docs

    I've confirmed it with part of the team, UUIDs are suppose to persist through server restarts.
     
  7. Offline

    fireblast709

    He means something similar like saving UUIDs. If you stop the server and start it again, they would still point towards the same entities. (note, the saving UUIDs is an example, not the actual question)
     
  8. yeah. uuid stays the same. entity id on the other hand change, and is quite a smaller number. the uuid is freaking long :p
     
  9. Offline

    Ragnazar

    Does EntityID (EID) work same way as UUID ?
     
  10. Offline

    Levi2241

    Only if you plan to use the ID quickly and get rid of it. Since multiple entities can possibly have the same EID.
     
Thread Status:
Not open for further replies.

Share This Page