Is there a way (or hopefully a future way) to set the entity ID for a spawned entity? For example, I have a plugin that uses the IDs for buttons to do certain actions. As it currently stands, when the server or plugin restarts, the IDs for the buttons are reassigned which breaks that funcionality. For regularly spawned buttons, this isn't an issue. It would be immensely helpful to have static entity IDs as an option.
Static Entity IDsSolved
Can you try the settings: "Save entities between restarts/reloads to preserve their state throughout a wipe"
Will do. I'll try it and report back, thank you.
Merged post
OK, that did the trick, but only when I set "Enable saving for storage entities" to true. It's curious that a button would be considered a storage entity, but I can confirm that the entity ID remained unchanged after plugin restarts when I made that change. Thank you for your assistance.
Buttons are definitely not storage entities. You would have to have reloaded the plugin 2 times to be sure it worked since the setting doesn't take effect until the first reload (when the plugin reads the new config value).
You can set this per entity prefab as well.
Locked automatically