@Override
    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {

        if (cmd.getName().equalsIgnoreCase("stream")) {
           
                
            try{
                
                if(args[0].equalsIgnoreCase("debug")){
                    
                    if(Main.Debug ==  true){
                        Main.Debug = false;
                        sender.sendMessage(prefix + "Disabled debug mode.");
                    }else{
                        Main.Debug = true;
                        sender.sendMessage(prefix + "Enabled debug mode.");
                    }
                
                }else if (channels.containsKey(args[0]) || channels.containsKey(args[0].toLowerCase())) {
                    sender.sendMessage(prefix + "Click to view: http://twitch.tv/" + args[0].toLowerCase());
                    return true;

                } else {
                    sender.sendMessage(prefix + "Channel not found! Valid channels: " + channels.keySet());
                    return true;
                }
                
                
            }catch(ArrayIndexOutOfBoundsException ae){
                sender.sendMessage(prefix+" Incorrect syntax! /stream <Channel> ");
                return true;
            }


        }
        return false;
    }