31.05.2015, 08:04
Thanks. I have another question. Are command names case-sensitive?
For example:
Will these to commands be the same?
The reason I ask is because I want to name my command "goto" and that is a Java keyword(don't have the hardware to test it myself right now )
And how do these commands work? What can be command function arguments? I mean I can't just add whatever I need and hope that shoebilll will do everything for me, can I?
For example
Can I somewhat control how the command will be found? I mean what will happen if player enters "/command non-existant palyer name" will this get called with p2 being null?
For example:
Код:
@Command public boolean cmd(Player p) { } @Command public boolean cMd(Player p) { }
The reason I ask is because I want to name my command "goto" and that is a Java keyword(don't have the hardware to test it myself right now )
And how do these commands work? What can be command function arguments? I mean I can't just add whatever I need and hope that shoebilll will do everything for me, can I?
For example
Код:
@Command public boolean command(Player p, Player p2) { }