06.08.2016, 19:20
Hello, I want to make a command with more than one usage (syntax).
Example: if someone types "/h", a usage cmd is sent: /h [BUY/SELL/CONFIG/SELLPLAYER]
If he types "/h buy or sell or config" it shows him a dialog.
But if he types "/h sellplayer" he gets another usage message: /h sellplayer [player id] [Price]
How?
Example: if someone types "/h", a usage cmd is sent: /h [BUY/SELL/CONFIG/SELLPLAYER]
If he types "/h buy or sell or config" it shows him a dialog.
But if he types "/h sellplayer" he gets another usage message: /h sellplayer [player id] [Price]
How?