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
66 stars 44 forks source link

Support: Using IRP Api #120

Closed timjuic closed 1 year ago

timjuic commented 1 year ago

Hi, is there a way to use IRP API to programmatically rollback users when needed? For example I would need to rollback a user to his last world change backup, when an event in my plugin happens.

TechnicallyCoded commented 1 year ago

Technically, yes.. but it's not easily usable as "get the most recent backup" + "now apply that".

If you want to reverse engineer some of this, you can take a look at click listeners for the restore GUI and the restore commands for finding how the recent backups are found.