File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
src/main/java/de/presti/ree6/module/game/impl/musicquiz Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 135135 </dependency >
136136 <dependency >
137137 <groupId >de.ree6</groupId >
138- <artifactId >Lavalink-Client</artifactId >
139- <version >1.0.1 </version >
138+ <artifactId >Lavalink-Client-Old </artifactId >
139+ <version >a8e9e49a57 </version >
140140 </dependency >
141+ <!-- New one doesn't have any built in support for JDA and neither do I have the time to actually do it so RIP -->
142+ <!-- <dependency>
143+ <groupId>de.ree6</groupId>
144+ <artifactId>Lavalink-Client</artifactId>
145+ <version>d374363078</version>
146+ </dependency>-->
141147
142148 <!-- Third party APIs -->
143149 <dependency >
Original file line number Diff line number Diff line change 1313import de .presti .ree6 .module .game .impl .musicquiz .util .MusicQuizUtil ;
1414import de .presti .ree6 .sql .SQLSession ;
1515import de .presti .ree6 .utils .others .ThreadUtil ;
16+ import lavalink .client .player .event .PlayerEvent ;
1617import net .dv8tion .jda .api .EmbedBuilder ;
1718import net .dv8tion .jda .api .entities .Message ;
1819import net .dv8tion .jda .api .entities .channel .middleman .AudioChannel ;
@@ -340,7 +341,7 @@ public void selectNextSong() {
340341 public MusicQuizPlayer getParticipantByUserId (long userId ) {
341342 return participants .stream ().filter (c -> c .getRelatedUserId () == userId ).findFirst ().orElse (null );
342343 }
343- private class MusicQuizListener implements lavalink .client .player .event .IPlayerEventListener . IPlayerEventListener {
344+ private class MusicQuizListener implements lavalink .client .player .event .IPlayerEventListener {
344345
345346 MusicQuiz musicQuiz ;
346347
@@ -349,7 +350,7 @@ public MusicQuizListener(MusicQuiz musicQuiz) {
349350 }
350351
351352 @ Override
352- public void onEvent (de . ree6 . lavalink . player . event . PlayerEvent event ) {
353+ public void onEvent (PlayerEvent event ) {
353354 if (event instanceof lavalink .client .player .event .TrackEndEvent trackEndEvent &&
354355 trackEndEvent .getTrack ().getInfo ().title .equalsIgnoreCase ("timer" )) {
355356 musicQuiz .selectNextSong ();
You can’t perform that action at this time.
0 commit comments