Jikoo / OpenInv

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

Add an option in the configuration file to disable playername history #107

Closed QuanTrieuPCYT closed 1 year ago

QuanTrieuPCYT commented 2 years ago

I switched from EssentialsX's /invsee and /endersee to this plugin because that plugin can't view offline player's inventories and enderchests (see here). Some of those coming from EssX like me might want the command /openinv and /openender to not remember their last executed playername, just like EssentialsX's /invsee command behavior as some of my staff reported that the history feature is kinda annoying to use.

QuanTrieuPCYT commented 2 years ago

A new config entry called disable-playername-history in the config.yml file should be ideal.

Jikoo commented 2 years ago

I would have to also include a better search -> user cache system for me to be comfortable with removing history. As it is, any parameterized location without an exact match online loads all offline players. Using the no-parameter command actually retrieves the last opened player much faster for offline players because it fetches them directly by UUID.