Check out example codes for "java commands in different packages not working". It will help you in understanding the concepts better.

Code Example 1

// make sure you have this in onEnable()
  this.getCommand("COMMANDHERE").setExecutor(new classname());
// make sure you have this done

Learn ReactJs, React Native from akashmittal.com