diff --git a/paper/src/main/java/net/william278/uniform/paper/LegacyPaperCommand.java b/paper/src/main/java/net/william278/uniform/paper/LegacyPaperCommand.java index d298f08..07e1387 100644 --- a/paper/src/main/java/net/william278/uniform/paper/LegacyPaperCommand.java +++ b/paper/src/main/java/net/william278/uniform/paper/LegacyPaperCommand.java @@ -85,11 +85,10 @@ public class LegacyPaperCommand extends BaseCommand aliases = Sets.newHashSet(command.getAliases()); - aliases.add("%s:%s".formatted( - plugin.getName().toLowerCase(Locale.ENGLISH).replaceAll("[^a-z0-9_]", ""), - command.getName()) - ); + command.getAliases().forEach(a -> aliases.add(namespace + ":" + a)); + aliases.add(namespace + ":" + command.getName()); aliases.forEach(alias -> event.getRoot().addChild( LiteralArgumentBuilder.literal(alias) .requires(built.getRequirement()).executes(built.getCommand()).redirect(built)