class SpigotMap implements PlatformMap {

    DispatcherCommand wrap(LiteralCommandNode<CommandSender> command) {
        var aliases = new ArrayList<String>();
        if (command instanceof Aliasable<?>) {
            for (var alias : ((Aliasable<?>) command).aliases()) {
                aliases.add(alias.getName());
            }
        }
        
        return new DispatcherCommand(command.getName(), plugin, dispatcher, command.getUsageText(), aliases);
    }

      SpigotMap(String prefix, Plugin plugin, CraftCommandMap map);

}