Left Click while using Spyglass
spuetter opened this issue ยท 1 comments
Thanks for taking the time to open a bug report!
Describe the bug
If you use the spyglass and try to execute the command that is stored when you left-click, it will not be executed.
To Reproduce
Steps to reproduce the behavior:
- Open the Itemjoin Menu
- Create an item as a spyglass and add a command when left-clicking.
- Use the spyglass with right-click. You should now look through it.
- If you left-click now, the previously saved command will not be executed.
Expected behavior
The command should be executed while using the spyglass, looking through it.
Screenshots
There is no screenshot to describe the problem.
Pastebin
https://pastebin.com/xqhUDfSz | config.yml
Please complete the following information:
- ItemJoin-v5.2.2-RELEASE
- where can I find the Build Number
- Server Version: paper-1.17-79
I apologize for the late reply, this was quite a complicated issue to get through.
After talking with some devs and doing a lot of testing, it turns out what you want is not possible.
The SpyGlass is entirely client-sided and when the SpyGlass is active (looking through it) there is no left-click detection server-side. There are also no packets sent regarding this. So there isn't a way to detect a left-click action while the spyglass is active.
So essentially, this issue is not possible to resolve as it is a limitation of the Minecraft/Spigot API.
I apologize for this. If it ever becomes possible in the future this is definitely something I will implement.