From 22121ad4f94ced9ca7d7d4641de41de02f63ac31 Mon Sep 17 00:00:00 2001 From: tastybento Date: Wed, 15 Aug 2018 20:50:02 -0700 Subject: [PATCH] Fixed bug with sub command getAddon() inheritance. --- .../world/bentobox/bentobox/api/commands/CompositeCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/bentobox/api/commands/CompositeCommand.java b/src/main/java/world/bentobox/bentobox/api/commands/CompositeCommand.java index c3e6245cb..68e2233dc 100644 --- a/src/main/java/world/bentobox/bentobox/api/commands/CompositeCommand.java +++ b/src/main/java/world/bentobox/bentobox/api/commands/CompositeCommand.java @@ -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); } /**