satoshinm / WebSandboxMC

Bukkit plugin providing a web-based interface with an interactive WebGL 3D preview or glimpse of your server 🕷⏳📦 ⛺
https://www.spigotmc.org/resources/websandboxmc.39415/
MIT License
19 stars 5 forks source link

/websandbox clear command to remove leftover web entities #64

Closed satoshinm closed 7 years ago

satoshinm commented 7 years ago

Better yet, is it possible to tag a Bukkit entity as "do not persist to disk"?

satoshinm commented 7 years ago

https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Entity.html - doesn't look like it. Maybe whenever a new web entity is spawned, immediately save its id to disk, so can be cleaned up if the server abnormally terminates? Or sufficient to scan sandbox area for entities that look like they came from WebSandboxMC? (same Entity class, at least)