File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
src/main/java/com/xxmicloxx/NoteBlockAPI/songplayer Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 55
66 <groupId >com.xxmicloxx</groupId >
77 <artifactId >NoteBlockAPI</artifactId >
8- <version >1.4.4 </version >
8+ <version >1.4.5-SNAPSHOT </version >
99 <name >NoteBlockAPI</name >
1010
1111 <properties >
Original file line number Diff line number Diff line change @@ -724,6 +724,18 @@ public void playSong(int index){
724724 }
725725 }
726726
727+ /**
728+ * Start playing {@link Song} that is next in {@link Playlist} or random {@link Song} from {@link Playlist}
729+ */
730+ public void playNextSong (){
731+ lock .lock ();
732+ try {
733+ tick = song .getLength ();
734+ } finally {
735+ lock .unlock ();
736+ }
737+ }
738+
727739 /**
728740 * Gets the SoundCategory of this SongPlayer
729741 * @see SoundCategory
You can’t perform that action at this time.
0 commit comments