mfnalex / ChestSort

Best sorting plugin for Minecraft / Spigot 1.14+
https://www.chestsort.de
GNU General Public License v3.0
91 stars 34 forks source link

Gesture operation for quickly placing items #49

Closed Pau1am closed 4 years ago

Pau1am commented 4 years ago

Is your feature request related to a problem? Please describe. I want to make this plugin support gesture operations

Describe the solution you'd like For example, when I open chest and press the space bar + right click, I can take out all the items in the chest, or I can also press the space bar + left click to inventory me Put all the items in the box. In addition, when I open the chest, I can click the part outside the GUI range of the chest to quickly close the chest

Describe alternatives you've considered No

Additional context No

mfnalex commented 4 years ago

Pressing the space button is not sent from the client to the server so there is no way to detect that.

Pau1am commented 4 years ago

I just give an example, maybe this operation can be achieved through other key combinations?

mfnalex commented 4 years ago

Yes, I will leave this issue open as a reminder and might come back to this later.

mfnalex commented 4 years ago

I just wanted to implement the following:

  1. Shift+Left-Click outside of chest will put your inventory into the chest
  2. Shift+Right-Click outside of chest will put everything from the chest into your inventory

However, there is a problem: it is not possible to detect a Shift-Click outside of the inventory. event.isShiftClick() always returns false when clicking outside of the inventory.

The only alternative I can think of is using ONLY left-click or right-click outside the chest :/

mfnalex commented 4 years ago

Preview version including the two new hotkeys: https://github.com/JEFF-Media-GbR/Spigot-ChestSort/releases/tag/8.0-pre1

mfnalex commented 4 years ago

Added in version 8.0