What would be the best way of "tracking" an entity so that you can save it in a hashmap/array and then retrieve it and get that entity, even when the server is shut down. I was not sure even what I was looking for so that's why I posted here, thanks in advance for any help I get .
I think saving the UUID of the entities in a list which you save to a config and load onEnable() should work See this post