TechnicallyCoded / Inventory-Rollback-Plus

Spigot/Bukkit plugin that allows server moderators to restore player items and data from backups.
https://www.spigotmc.org/resources/85811/
Other
78 stars 44 forks source link

Feature Request: command to restore player #88

Open AleNight opened 2 years ago

AleNight commented 2 years ago

Hi! I wonder if you could add a command to restore everything (Health, Hunger, XP, EnderChest, Location and obviosly inventory) at once. It would have a sintaxis like this:

 /inventoryrollbackplus restore <all/player> <file>

 /inventoryrollbackplus restore AlejoGames_317 savefile1

This would need obviosly the option (definetely not obligatory) to name a save file. By example

 /inventoryrollbackplus forcebackup all/player <savefilename>

This would have make a folder named as the save file, and inside the folder of the player/all, and the .yml save file.

Like pressing all the buttons at once, with the option of naming a save file.


Thank you for reading this suggestion/idea :D

ElTodoFull commented 2 years ago

I'm currently "kidnapped" with a plugin that saves inventories in a MySQL, and when I uninstall the plugin, players start with an empty inventory. Thankfully, IRP is able to save a backup when the player leaves.

Being able to rollback via console, and restore a specific backup directly, would help greatly to transfering the items to normal minecraft. Like, the player joins with the old plugin gone, and also the items, check if they received the backup, give them the backup of the last time they left the server so they don't notice (and mark them as "updated".)

My idea for the console/player command: /irp forcerestore [name] [category] [backup#] [include-enderchest] [replace] /irp forcerestore ElTodoFull leave 1 true true That'd restore the latest (https://github.com/TechnicallyCoded/Inventory-Rollback-Plus/issues/1) "leave" backup, and the enderchest, and replace everything they had before.

heypr commented 1 year ago

bump

TechnicallyCoded commented 1 year ago

I love the idea but I don't have the time to do this yet due to studies. I ensure that the plugin is stable and functional above all but that means features need to be pretty necessary for me to add them with a high priority.

This is not something people like to hear but, us devs do these things for free as a public service and, therefore, since we don't prioritize unpaid work, it takes a while for things to happen. So, what time isn't taken for studies, usually ends up in personal time or commissioned work (aka paid work).

heypr commented 1 year ago

I love the idea but I don't have the time to do this yet due to studies. I ensure that the plugin is stable and functional above all but that means features need to be pretty necessary for me to add them with a high priority.

This is not something people like to hear but, us devs do these things for free as a public service and, therefore, since we don't prioritize unpaid work, it takes a while for things to happen. So, what time isn't taken for studies, usually ends up in personal time or commissioned work (aka paid work).

No problem man, good luck with your studies!

AleNight commented 1 year ago

I love the idea but I don't have the time to do this yet due to studies. I ensure that the plugin is stable and functional above all but that means features need to be pretty necessary for me to add them with a high priority.

This is not something people like to hear but, us devs do these things for free as a public service and, therefore, since we don't prioritize unpaid work, it takes a while for things to happen. So, what time isn't taken for studies, usually ends up in personal time or commissioned work (aka paid work).

Don't worry, ik that studies take up a lot of time that we could use for coding, but they're necessary. Also ik that this is an unpaid work (aka public service). So don't worry man, take all the time you need, and focus on your studies. Good luck ;)