Package net.bnubot.util.music

Examples of net.bnubot.util.music.MusicController


    Profile.registerCommand("music", new CommandRunnable() {
      @Override
      public void run(Connection source, BNetUser user, String param, String[] params, boolean whisperBack, Account commanderAccount, boolean superUser)
      throws Exception {
        MusicController mc = MusicControllerFactory.getMusicController();
        user.sendChat(mc.getCurrentlyPlaying(), whisperBack);
      }});
    Profile.registerCommand("pause", new CommandRunnable() {
      @Override
      public void run(Connection source, BNetUser user, String param, String[] params, boolean whisperBack, Account commanderAccount, boolean superUser)
      throws Exception {
        MusicController mc = MusicControllerFactory.getMusicController();
        mc.pause();
      }});
    Profile.registerCommand("play", new CommandRunnable() {
      @Override
      public void run(Connection source, BNetUser user, String param, String[] params, boolean whisperBack, Account commanderAccount, boolean superUser)
      throws Exception {
        MusicController mc = MusicControllerFactory.getMusicController();
        mc.play();
      }});
  }
View Full Code Here


      i = text.indexOf("%mp3%");
      if(i != -1) {
        String mp3 = null;
        try {
          MusicController musicController = MusicControllerFactory.getMusicController();
          mp3 = musicController.getCurrentlyPlaying();
        } catch(Exception e) {
          e.printStackTrace();
        }

        if(mp3 == null)
View Full Code Here

TOP

Related Classes of net.bnubot.util.music.MusicController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.