Jikoo / OpenInv

Open anyone's inventory as a chest, real-time!
GNU General Public License v3.0
119 stars 41 forks source link

Allow searching by display name or lore #252

Open masood151117 opened 1 month ago

masood151117 commented 1 month ago

Please add searchingg item using name or lore insted of only use matrial name / i cant search slimefun iteems or custom items you can add this filter end of search command . like this /searchcontainer [chunkradius] [name] [lore] or /searchcontainame [lore] [material] and do this also for all other commands like searchenchant or searchinv or searchender command

Jikoo commented 1 month ago

You should probably consider using a tracking plugin for searching instead of OI - its searches are rudimentary and do not give you any context for why an item is where it is. Prism and CoreProtect are the leading tracking options I'm aware of.

I had at one point started to rewrite search, but given the lack of feedback (aka low interest) and horrible mess that is trying to add every option under the sun, it fell by the wayside. My goal for the search commands is to split them out into OI addons that make it clear there are usually better administrative alternatives. I'm going to leave this open because I do still want to see if improving search is viable, but I strongly encourage you to seek a more feature-rich and focused plugin for tracking item locations.

masood151117 commented 1 month ago

No other plugin has the search command for online players . CoreProtect only finds the history for online and offline but cannot search the current inventory or enderchests or chests for a duplicate item that I am trying to find. Yesterday someone used a bug and many hundreds of thousands of items or put them in different accounts or places. No plugin except openinv has the ability to search for items in chests and inventories. In this way, for example, you can find an item called Epic Pickaxe. i found the player's inventory I was able to find and collect all the duplicated swords by searching for level 50. If possible, add the ability to type the name for item searching :)

If you can add the ability to search by name and lore, beaciuse in fact, many servers will be saved. For example, when a person among hundreds of players enters the server and starts duplicating, by selecting the name of some important items, you can find it in the inventory or in the inventory. Find special people. But there are many restrictions for using Coreprotect and it is not good at all. commands such as searching by name and lore, or deleting items automatically, etc. can be very useful. It is possible to delete the items automatically, but only the Anti Exploit plugins do this, and you have to do many steps in their configuration and restart the server, but with openinv, you can find the items using a GUI screen. Automatic removal from iventory. enderchests and inventories. These simple features can be sold as a premium in markets. In any case, since I know that adding the lore filter and the name to the plugin may not be difficult for you as the author of the plugin, please add this or at least add the searchhand command to check the item in the field and find items with similar data.

masood151117 commented 1 month ago

You should probably consider using a tracking plugin for searching instead of OI - its searches are rudimentary and do not give you any context for why an item is where it is. Prism and CoreProtect are the leading tracking options I'm aware of.

I had at one point started to rewrite search, but given the lack of feedback (aka low interest) and horrible mess that is trying to add every option under the sun, it fell by the wayside. My goal for the search commands is to split them out into OI addons that make it clear there are usually better administrative alternatives. I'm going to leave this open because I do still want to see if improving search is viable, but I strongly encourage you to seek a more feature-rich and focused plugin for tracking item locations.

:/