package fredboat.command.music;

import fredboat.audio.GuildPlayer;
import fredboat.audio.PlayerRegistry;
import fredboat.commandmeta.abs.Command;
import fredboat.commandmeta.abs.IMusicCommand;
import net.dv8tion.jda.entities.Guild;
import net.dv8tion.jda.entities.Message;
import net.dv8tion.jda.entities.TextChannel;
import net.dv8tion.jda.entities.User;
import net.dv8tion.jda.player.source.AudioSource;

public class SkipCommand extends Command implements IMusicCommand {

    @Override
    public void onInvoke(Guild guild, TextChannel channel, User invoker, Message message, String[] args) {
        GuildPlayer player = PlayerRegistry.get(guild.getId());
        player.currentTC = channel;
        if (player.getCurrentAudioSource() == null) {
            channel.sendMessage("The queue is empty!");
        } else {
            AudioSource src = player.getCurrentAudioSource();
            player.skipToNext();
            channel.sendMessage("Skipped " + src.getInfo().getTitle());
        }

    }

}

@@ -26,16 +26,74 @@
 music;%0A%0A
+import com.sedmelluq.discord.lavaplayer.track.AudioTrack;%0A
 import f
@@ -115,24 +115,24 @@
 uildPlayer;%0A
-
 import fredb
@@ -411,58 +411,8 @@
 ser;
-%0Aimport net.dv8tion.jda.player.source.AudioSource;
 %0A%0Apu
@@ -721,34 +721,28 @@
 ayer.get
-CurrentAudioSource
+PlayingTrack
 () == nu
@@ -841,18 +841,16 @@
 udio
-Source src
+Track at
  = p
@@ -862,26 +862,20 @@
 .get
-CurrentAudioSource
+PlayingTrack
 ();%0A
@@ -901,14 +901,8 @@
 skip
-ToNext
 ();%0A
@@ -950,11 +950,10 @@
 %22 + 
-src
+at
 .get
@@ -963,18 +963,13 @@
 o().
-getT
+t
 itle
-()
 );%0A 

Fix ;;skip