This plugin is just a simple plugin to add the option to check for Alt, Ctrl, Shift or all three are down.
Known limitations:
Screen is apart of the GUI class what servers don't have so you would have to do a client side only check and send the information to the
server, and servers will throw out a error.(Attempted to load class net/minecraft/client/gui/screen/Screen for invalid dist DEDICATED_SERVER)
If you want keys to work on a server please use the built in Key bindings, the limitation of how screen works on a server can't be over come
this isn't a bug with the plugin but a limitation with servers, since there is already a work around takes as long as it would take to come up with
a made work around to use push on a server I advice you to use that.
Change Log:
1.0.0.4
#Tested in 2022.1.16.5/1.18.2 forge
#Added a All key check (1.16.5 to 1.18.2 tested)
1.0.0.3
#Tested in 2021.3 Basic test(shift) for 1.16.5 + 1.17.1 Forge
#Tested in Unreleased 2022.1 1.17.1/1.18.1 forge
1.0.0.2
# Fixed problems in language file
# Test in 2021.2 EAP and Source
Push:
This plugin is just a simple plugin to add the option to check for Alt, Ctrl and shift is down.
Few tweaks updated by Goldorion, Please don't edit my work and release it on any website without following the license, another way
to submit fix's and changes is via GitHub the changes people have made and released without following the license has already been
pointed out but never posted where it should of been, via GitHub, please follow the License thanks.
Souce:
https://github.com/LexShadow/Push (out of date right now)
Comments
Well to say the global variable isn't server friendly ever that whole thing wouldn't work anyway, what you have to do is have it trigger local only and send another request to the server there isn't a fix as it's not a bug there is no screen code in the server as it has no GUI so it dose not need it.
The local functions will still work fine but will show a error on the server even is provided world for some reason it's still sending the request to the server nothing I created dose this.
Give it a try with 1.17.1 as I made this for client version I use it in 2021.3 in 1.16.5 so it might work fine in 1.17.1, 1.8 I can't say yet as I don't have that client I am been unable to build that version now as they not updated the wiki on how to compile it I feel it's a big FU to devs so I will just have to wait until it's public.
When you download the plugin make sure you delete the old version first then install the update, the tooltops was fixed in 1.0.0.2, if there is bugs please report it on GitHub so I can see the reply even when notify me is on I don't get told about updates here so please use the issue tracked on GitHub, if you want to make changes to this plugin follow the Lic thanks.
Super useful, would have thought this was in the original version