Allow player to resurrect dead horses
Zedd7 opened this issue ยท 1 comments
Dead horses should remain in the horse table in the database and a new table horse_death should be created, with horse.UUID as FK.
Dead horse should be resurrected in the LIFO order (stack) and recorded in FIFO order (queue).
A new command and a new config option should be added :
/zh rez -i <horseID> -p <playerName>
/zh rez -p <playerName>
Settings.manage-dead-horse
Settings.rez-stack-size
If Settings.manage.dead.horse
is set to falseSettings.rez-stack-size
is set to 0, no record of dead horses should be made in the database.
Removing all previous records should be considered.
Modifying this value should have no direct impact on the database. Instead, a new /zh admin
's sub-command should be added :
/zh admin burial -p <playerName>
Preventing players from resurrecting their horses should be done by using permissions.
Dead horses should still be referenced in the player's list but should not count as claimed.
Dead horse should appear in a separate list that would be displayed by /zh list, along with the list of claimed horses.
Resurrected horses should be automatically claimed (abort if claims limit reached) and given their stats and inventory back.