apavarino / Deadchest

Minecraft Plugin - Keep your inventory in a chest when you die !
https://dev.bukkit.org/projects/dead-chest
GNU General Public License v3.0
18 stars 17 forks source link

Added option to repair command #46

Closed broken1arrow closed 2 years ago

broken1arrow commented 2 years ago

If you restart the server it will not find the deadchest spawned armorstands. But this option will instead remove all armorstands close to the player (So it could also remove wrong stands).

This will force remove all armorstands no mater if it conected to deadchest or not.

Don´t know if /deadchest:dc repair force or /deadchest:dc repair true is best option.

broken1arrow commented 2 years ago

Thinking on this issue https://github.com/apavarino/Deadchest/issues/43 and other complain the command not work.

You can fix that on 1.14 and newer minecraft versions to use persistent data container or short pdc and save data inside that (will not lose data on restart). https://hub.spigotmc.org/javadocs/spigot/org/bukkit/persistence/PersistentDataContainer.html

It exist good api you can use, insisted of make your own here https://github.com/tr7zw/Item-NBT-API to easy utilize PDC.