Works like a charm. It is as simple as putting the .nbs file in your maven resources for your project and passing the InputStream into NBSDecoder.process(...) and you're set. I got this and immediately forked it thinking I would need to heavily modify it for my use case, but it already has everything I need from it- that is, multiple world support and anywhere in those worlds and being able to set it to repeat without an extra listener like other solutions. It took no more then 11 minutes (yes, you can look at the timestamps from when I forked it till when I commited the working code into the server plugin) to get a full note block track working and playing anywhere on the server from the time you login, and that is more then can be said for other solutions available right now. Thank you for providing this resource to the commit, it is much appreciated.
[21:35:39 WARN]: [NoteBlockAPI] Task #2161 for NoteBlockAPI v1.4.4 generated an exception
java.lang.ArrayIndexOutOfBoundsException: 3
at com.xxmicloxx.NoteBlockAPI.songplayer.RadioSongPlayer.playTick(RadioSongPlayer.java:63) ~[?:?]
at fr.skytasul.music.utils.CustomSongPlayer.playTick(CustomSongPlayer.java:28) ~[?:?]
at com.xxmicloxx.NoteBlockAPI.songplayer.SongPlayer.lambda$null$6(SongPlayer.java:402) ~[?:?]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.15.2.jar:git-Paper-67]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:452) ~[patched_1.15.2.jar:git-Paper-67]
at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1185) ~[patched_1.15.2.jar:git-Paper-67]
at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:423) ~[patched_1.15.2.jar:git-Paper-67]
at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1112) ~[patched_1.15.2.jar:git-Paper-67]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:934) ~[patched_1.15.2.jar:git-Paper-67]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_211]
[21:35:39 WARN]: [NoteBlockAPI] Task #2167 for NoteBlockAPI v1.4.4 generated an exception
java.lang.ArrayIndexOutOfBoundsException: 3
at com.xxmicloxx.NoteBlockAPI.songplayer.RadioSongPlayer.playTick(RadioSongPlayer.java:63) ~[?:?]
at fr.skytasul.music.utils.CustomSongPlayer.playTick(CustomSongPlayer.java:28) ~[?:?]
at com.xxmicloxx.NoteBlockAPI.songplayer.SongPlayer.lambda$null$6(SongPlayer.java:402) ~[?:?]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.15.2.jar:git-Paper-67]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:452) ~[patched_1.15.2.jar:git-Paper-67]
at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1185) ~[patched_1.15.2.jar:git-Paper-67]
at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:423) ~[patched_1.15.2.jar:git-Paper-67]
at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1112) ~[patched_1.15.2.jar:git-Paper-67]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:934) ~[patched_1.15.2.jar:git-Paper-67]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_211]
[21:35:40 WARN]: [NoteBlockAPI] Task #2170 for NoteBlockAPI v1.4.4 generated an exception
java.lang.ArrayIndexOutOfBoundsException: 3
at com.xxmicloxx.NoteBlockAPI.songplayer.RadioSongPlayer.playTick(RadioSongPlayer.java:63) ~[?:?]
at fr.skytasul.music.utils.CustomSongPlayer.playTick(CustomSongPlayer.java:28) ~[?:?]
at com.xxmicloxx.NoteBlockAPI.songplayer.SongPlayer.lambda$null$6(SongPlayer.java:402) ~[?:?]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.15.2.jar:git-Paper-67]
at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:452) ~[patched_1.15.2.jar:git-Paper-67]
at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1185) ~[patched_1.15.2.jar:git-Paper-67]
at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:423) ~[patched_1.15.2.jar:git-Paper-67]
at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1112) ~[patched_1.15.2.jar:git-Paper-67]
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:934) ~[patched_1.15.2.jar:git-Paper-67]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_211]
Please don't use Reviews for issue reports. Rather use Issues on Github or contact me using PM. This way I am not able to help you as you haven't provided enough informations.
Version: 1.4.4(MC1.8+)
The plugin works very great with Denizen, gives no problems. I am not a developer, so I can't explain how great the actual API is, but it works very great with the plugins I used. Please update this to noteblock studio's version 4.6.0, theres been a lot of changes to .nbs files
I ended up requiring something different, however it's a great plugin with a great API, I look forward to seeing the wiki... would be great if it was expanded beyond just .nbs but with the same API
NoteblockAPI offers rich amount of API. Our server and plugin are taking advantage of this. However, when I develop my plugin with this API, I couldn't remove offline players from a radio which is necessary to keep the radio channel clean.
Great API, fairly straightforward and easy to use. Has all the methods that I needed. Could use more documentation (took me a while to figure out what the layerHashMap was in the Song class, etc)
This is a very nice and useful API. But can i ask if a song is over, because i want display the title of the song and thats the reason why i need a method.
I do not know, but when I play any song from NoteBlockStudio, this API is spamming my console with error every note.
Error:
https://pastebin.com/utTuZfv9
While this is an extension for many plug-ins out there, it is updated with 1.12 sounds and even the hidden pling sound! Amazing extension, made by amazing developer!