Hi there, I'm new to the forum, so 'Hi'. Nice to meet y'all. I've got a question. I'm going to write a plugin for my home server, and I'd like to know what kind of input I can get from the player, other than PlayerInteractEvents and commands. Is there a way to get keystrokes or mouse input such as the scroll wheel? I've tried looking through the API documentation, but maybe that's not the best place to look... If anyone knows the answer to my question, or could point me to the right place to find the answer, that would be great. Thanks ahead for any help, it's certainly appreciated.
You can't do that directly, you'd either need Spout or a Client Mod for that. What you can do however, is see what they've typed in with PlayerChatEvent. Always handy
You can actually use the mouse wheel, as it changes your held item, which is sent to the server. But Bukkit doesn't have a method .getHeldItemIndex(), only getHeldItem() -_-