Page 1 of 1
Question about usercommhandle
Posted: Thu Jul 21, 2016 2:13 am
by KGB1st
Code: Select all
private static final int[] COMMAND_IDS =
{
77 // <- Why 77 for /time
};
What is this ID? Where from int value? Or it's random?
Re: Question about usercommhandle
Posted: Fri Jul 22, 2016 11:39 am
by HorridoJoho
The user commands are hardcoded in the client. That means that the client only sends the id to the server. That is also why you can't create user commands without modifying the client, which is not allowed to be talked about here.
That is why the voiced commands were introduced, so you have an easy way to add commands without modifying the client. Look into game/data/scritps/handlers/voicedcommandhandlers/.