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();
}});
}