Hi
I tried adding a command that only the client can see, just to test things out and it did not work for some reason.
I tried using the implementation ICommand into a class I added to my main class.
I tried searching for hours, but I didn't find anything useful for what I want to do. most of the tutorials are including the server too.
This is what I tried doing:
public class command implements ICommand {
@Override
public int compareTo(ICommand arg0) {
// TODO Auto-generated method stub
return 0;
}
@Override
public String getCommandName() {
// TODO Auto-generated method stub
return "test";
}
@Override
public String getCommandUsage(ICommandSender sender) {
// TODO Auto-generated method stub
return "test stuff";
}
@Override
public List<String> getCommandAliases() {
return null;
}
@Override
public void processCommand(ICommandSender sender, String[] args) throws CommandException {
// TODO Auto-generated method stub
System.out.println("testing complete");
}
@Override
public boolean canCommandSenderUseCommand(ICommandSender sender) {
// TODO Auto-generated method stub
return true;
}
@Override
public List<String> addTabCompletionOptions(ICommandSender sender, String[] args, BlockPos pos) {
// TODO Auto-generated method stub
return null;
}
@Override
public boolean isUsernameIndex(String[] args, int index) {
// TODO Auto-generated method stub
return false;
}
}
What am I doing wrong here? and will this method work only on the client?
Thanks