1
Redacted
redacted
Create an account or sign in to comment.
3
1
i cant solve it yet but i sm really exited that i can read it cuz im learning coding :3
1
Solved, thanks
1
The reason why is you only use onCommand once, and add multiple commands to it
For example
public boolean onCommand(CommandSender sender, blah blah blah) {
if (sender instanceof player) {
if(cmd.getName().equalsIgnoreCase("hhub")){
//DO YOUR STUFF HERE
} else if (cmd.getName().equalsIgnoreCase("hserver") {
//DO NEXT COMMAND HERE
}
}
}
Hope I helped
For example
public boolean onCommand(CommandSender sender, blah blah blah) {
if (sender instanceof player) {
if(cmd.getName().equalsIgnoreCase("hhub")){
//DO YOUR STUFF HERE
} else if (cmd.getName().equalsIgnoreCase("hserver") {
//DO NEXT COMMAND HERE
}
}
}
Hope I helped