Binding a chat command to a key for all players

Hi everyone,

I was wondering if anyone could give me some insight into binding a certain function which is activated by a chat command e.g. “!donate” to F2. So when a player is on my server and presses F2 it responds in the same way as if they typed !donate.


Take a look at . This would allow you to check if a certain key was pressed is also another one you can use.