Fixed bug with sub command getAddon() inheritance.

This commit is contained in:
tastybento 2018-08-15 20:50:02 -07:00
parent 5981ffa0d5
commit 22121ad4f9

View File

@ -151,7 +151,7 @@ public abstract class CompositeCommand extends Command implements PluginIdentifi
* @param aliases - aliases for this subcommand
*/
public CompositeCommand(CompositeCommand parent, String label, String... aliases) {
this(null, parent, label, aliases);
this(parent.getAddon(), parent, label, aliases);
}
/**