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