Purpose : InventorySharer is meant to be a quick and easy way for players (with the proper permissions) to share their inventory in chat. Do you have a super rare item? Show it off! I've seen a lot of plugins that in various ways show individual items actually WITH text IN CHAT but this snapshots an entire inventory and shows the ACTUAL items within the inventory.
Requirements :
Java 11 minimum
⟿ Subtle but still useful chat implementation : This plugin utilizes chat to work.
⟿ Tooltip on hover instructs players clearly : The plugin explains how it's used so simply that even a PewDiePie subscriber can understand.
⟿ Limited inventory caching : When a player includes [inv] in a message, a snapshot of their inventory is saved to the server's memory. Although this realistically does not lag the server in any noticeable way, just to be safe you can limit the number of cached inventories. It defaults to 20 but it is completely realistic to increase it to a triple digit number.
⟿ Works Perfectly on Heavily Populated Servers : Have a server with 250+ players? No issue.
⟿ Showing Off Your Inventory :
You must have the permission "inventorysharer.create"
In any chat message, simply include "[inv]" in the message. It will appear as so and won't stand out, spamming chat in any way.
This will include a snapshot of your inventory at the time of sending the message. This ensures that players can't view your inventory after the fact to spy on what you have.
⟿ Viewing Another Player's Inventory :
You must have the permission "inventorysharer.use"
They must include "[inv]" in a chat message.
Hover over "[inv]". You will be instructed with a tooltip at this point telling you to click to view the player's inventory.
Click!
⟿ Visual Demonstration : First we type a chat message with "[inv]" in it
It becomes clickable text with a hover in chat
We click it to view the inventory snapshot which includes offhand, armor, and technically crafting table slots though those should always be empty lol
Here I cleared my inventory before opening it, demonstrating that it is a SNAPSHOT taken at the time of typing the chat message, and not a forever-live view of the player's inventory.
Cached_Inventories: 20
#This is how many inventories can stay loaded on the server at a time
#allowing players to click the [inv] and view them.
Disallow_Numerous_Inv_Per_Message: false
#Set this to false to allow players to display numerous [inv] tags
#in a single message. They will all link to the same inventory
#if they are included. Purely for aesthetic reasons.
#inventorysharer.create - Allows usage of [inv] in chat (sending)
#inventorysharer.open - Allows usage of [inv] in chat (clicking)
##########################################################
# Version #
##########################################################
VERSION: 2
#Do not touch this. No touchy.
I'm just a college student. This is just a hobby. You have no need to give me money. However, if you wish to help pay for my overpriced books and classes, that would be extremely appreciated. -_-
https://paypal.me/AaronSkeels -_-