Inventory Restore+: REMASTERED

 Inventory Restore+: REMASTERED 2.7.3-STABLE

As requested by Vanex in Discord, a feature to force restore inventories are now in this version.

How does it work? Two options.
  1. In the recover inventory pane, you will have an option to Shift-Click the green button.
  2. For the command, append a "-f" or "-force" at the end. This will automatically find the latest available inventory for the player (last death). For example: "/recoverinv ExpDev...
2.7.1-STABLE introduces multiple statuses and also changes the way statuses are handled. Please note that inventories the statuses "deleted" and "accepted" will not persist over reloads/restarts.

NOTE: IF YOU WISH TO USE THIS VERSION, PLEASE TURN OFF YOUR SERVER, GO TO /plugins/invrestore2/players.json AND DELETE THIS FILE COMPLETELY, AND TURN YOUR SERVER ON AGAIN.

Gyazo:
https://i.gyazo.com/54c21fb32e081195c02964d2c8ad902d.mp4
(https://gyazo.com/54c21fb32e081195c02964d2c8ad902d)

Please let me know how this works out, I am planning to change it so you can recover deleted inventories, and even revert accepted ones. The GUI will also change, so it doesn't look like three colors are clumped up together.

PLEASE LEAVE A REVIEW, it would be very appreciated.
2.6.8-STABLE

Remove pending recovered inventories
This update adds (as requested by @mraureliusr) the ability to "remove" recovered inventories. This simply adds their inventory back into the recoverable inventories section.

Changes to GUI
For this to be possible, changes had to be made to the GUI to signify to the staff which inventories are pending and which are not (see GIF below).

https://gyazo.com/e26b8b89c0c3a0e79800a2ab63e28366
e26b8b89c0c3a0e79800a2ab63e28366.gif


Screenshot if you can't load gif:
https://gyazo.com/cd3ce7ceda36749cac3bf8ec989030b8
cd3ce7ceda36749cac3bf8ec989030b8.png



Hope you all are happy about this one!
2.6.6-STABLE

Configurable Chat Components for lang.yml
SpigotMC user @Valcoxic requested the pending recoverable inventories clickable/hoverable message to be editable in the lang file.

Now you can transform any message in the lang.yml file to a chat components (clickable/hoverable messages). Simply start the message with "[JSON]", case sensitive, OR explicitly prove that it's json by starting the message with "{" or "[" and ending it with "}" or "]".

You can use MinecraftJSON to create these messages (see picture).
https://prnt.sc/gym9mh
m4NrNw_3Q6iK78twcDtOOA.png


Simply paste the value which is squared in red, remember to put "[JSON]" at the start.

Example:
exampleMessage: '[JSON]["",{"text":"- %1$s (%2$s)","color":"blue","clickEvent":{"action":"run_command","value":"/restoreinv %1$s"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"View recovered inventory: %1$s","color":"green"}]}}}]'

Note that this can be done for ANY message, not only the pending recoverable inventories message (also with placeholders!).

Command(s) added:
- /invrestore (view plugin information)
BlackSpigot General Chat
Rules Help Users
    BlackSpigot.com @ BlackSpigot.com: my vip was not activated Hello, PM me the email you used to pay.
    Top