Bad idea, you would have to load all chunks, iterate over thousands of entries, do stuff with whatever you found and unload them. Ok, at least that's a good way to keep the server busy
Also no, haven't looked into how to get spawn positions yet.
It MAY be possible if you can tell when a user opens a chest. May require some additional hooks though.
EDIT: After thinking about it a bit more I suspect it's possible. When a user places a chest there is message passed to the server so everyone can see that chest. Give or grab the chest's GUID/UUID and store it with the coordinates of the chest. When 2 people are in the same chest and they are moving items around this gets sent to the server so both players can see the changes the other is making - point being is that this information is sent/pulled from the server at some point - so there's bound to be a way to intercept that information. I wish I was stronger with .NET but I'm not.
Of course this information won't be available until someone actually accesses/places a chest, but I imagine you could write something to painful iterate over every block when the server has some downtime (potentially hours).
Improvements for the dedicated server
in Tools
Posted · Edited by ioScream (see edit history)
It MAY be possible if you can tell when a user opens a chest. May require some additional hooks though.
EDIT: After thinking about it a bit more I suspect it's possible. When a user places a chest there is message passed to the server so everyone can see that chest. Give or grab the chest's GUID/UUID and store it with the coordinates of the chest. When 2 people are in the same chest and they are moving items around this gets sent to the server so both players can see the changes the other is making - point being is that this information is sent/pulled from the server at some point - so there's bound to be a way to intercept that information. I wish I was stronger with .NET but I'm not.
Of course this information won't be available until someone actually accesses/places a chest, but I imagine you could write something to painful iterate over every block when the server has some downtime (potentially hours).