mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 19:55:17 +01:00
Fixed bug with sub command getAddon() inheritance.
This commit is contained in:
parent
5981ffa0d5
commit
22121ad4f9
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user