Commit Graph

17 Commits

Author SHA1 Message Date
Navoei
0d41e54e6b Thread Pools and Hopper Comaptibility
2.0 release of Custom Discs
2022-08-07 23:44:24 -05:00
Navoei
aac5cc4112 Removed Redundant Code
Removed some code that spams console.
2022-07-29 15:52:47 -05:00
Navoei
6dd7c6f8d0 Better Async Tasks
Now using a BukkitRunnable and a Map to determine if an async task is running. This allows the plugin to prevent the jukebox from being modified before the task is complete, which prevents the jukebox from bugging out and causing discs to be lost.
2022-07-29 15:51:11 -05:00
Navoei
99c4f6090c Async AudioPlayer
The audio player now runs asynchronously to prevent lag when inserting discs into a jukebox.
2022-07-24 20:24:37 -05:00
Navoei
c1050d2640 Mp3 Support
Mp3 support for custom discs!
2022-07-24 14:36:38 -05:00
Navoei
2c5381b7d9 Begin work on mp3 support
Add mp3spi as a dependency.
2022-07-19 21:25:58 -05:00
Navoei
ad050cf940 Bugfix
Patched a bug where players could dupe discs if the file is not found whent he player inserts a disc into a jukebox.
2022-07-12 20:44:52 -05:00
Navoei
2f309fa58a Hand swing fix
Fixed a small issue when the server restarts and the hand does not swing
2022-07-12 01:20:35 -05:00
Navoei
2e3d7c4bb3 Actionbar & bugfixes
Fixed some bugs while playing customdiscs while vanilla discs were already in a jukebox.
Players are now sent an action bar message containing the song that is being played.
2022-07-12 00:57:22 -05:00
Navoei
53f1396738 Jukebox updates and Presistent Data Containers
The jukebox now stops the vanilla sound!
The plugin now uses a presistent data container to store the music disc.
2022-07-11 20:12:28 -05:00
Navoei
0c0307607c Permissions
The permission customdiscs.command is now required to run /customdisc .
2022-07-10 18:14:24 -05:00
Navoei
7794ca19de Jukebox updates
Jukeboxes now stop playing audio when exploded.
2022-07-10 18:06:37 -05:00
Navoei
129c22aba1 Audio Player stops
The audio player ID is now based off block.getLocation().toString().getBytes(). This allows the audio player to be controlled based on the location of the jukebox!
2022-07-10 14:23:29 -05:00
Navoei
af77bffaac Some minor changes
was trying to get a way to control the audio channel
2022-07-09 21:35:28 -05:00
Navoei
287b41f004 Jukebox updates
Jukebox now stops the audio player, although there is some conflict when playing multiple discs.
2022-07-09 19:54:12 -05:00
Navoei
9b99a46f77 Jukebox Plays
The jukebox now plays the songfile, although the vanilla disc still plays.
2022-07-08 23:39:02 -05:00
Navoei
897b204257 File Checks
When inserted into jukebox, the plugin will check if a file exists.
2022-07-08 18:52:20 -05:00