MCJukeBox [SK]

API MCJukeBox [SK] 1.1.2

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Contributors
Lego_freak1999
Supported Minecraft Versions
  1. 1.12
  2. 1.13
  3. 1.14
This skript api allows you to interact with the plugin MCjukebox: https://www.spigotmc.org/resources/mcjukebox.16024/ .


Code:
(MCJukebox|MCJB) play %text% at volume %number% with media type (1¦Music|2¦Sound[( |_)]Effect) to %players%
(MCJukebox|MCJB) stop music with fade out %number% to %players%
(MCJukebox|MCJB) stop all with fade out %number% to %players%
(MCJukebox|MCJB) token of %player%
(MCJukebox|MCJB) url of %player%

Code:
command /playsoundeffect:
    trigger:
        MCJukebox play "URL" at volume 100 with media type sound effect to player

command /playmusic:
    trigger:
        MCJukebox play "URL" at volume 100 with media type music to player

command /stopmusic:
    trigger:
        MCJukebox stop music with fade out 3 to player

command /stopall:
    trigger:
        MCJukebox stop all with fade out 3 to player

command /token:
    trigger:
        message MCJukebox token of player

# command /audio:
   # trigger:
       # 1.12 1.13
       # message MCJukebox url of player
       # 1.14+
       # message formatted MCJukebox url of player

#Currently not working on 1.14+ due to bug/issue in Mcjukebox https://github.com/oliverdunk/JukeboxAPI/issues/44
import:
    net.mcjukebox.plugin.bukkit.events.ClientConnectEvent
    net.mcjukebox.plugin.bukkit.events.ClientDisconnectEvent

on ClientConnectEvent:
    set {_player} to event.getUsername() parsed as a player
 
on ClientDisconnectEvent:
    set {_player} to event.getUsername() parsed as a player

Have fun :emoji_grinning:!

50 Downloads! Yeah
100 Downloads! Ty :emoji_grinning:
150 Downloads! AwEsOmE
200 Downloads! No way :0 ty!
300 Downloads! Uhhhh maybe i really need to make a 2.0 now xd ty!
  • Like
Reactions: ExCorde
Author
Lego_freak1999
Downloads
1,477
Views
1,477
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from Lego_freak1999

Latest updates

  1. Forgot to remove debug messages V1.1.2

    Changes: + Removed debug messages from play effect Soon: + Region support + Show support + More...
  2. Bug fix url colorcodes & play effect not working V1.1.1

    Changes: + Again Fixed a bug with color codes & json formatting in audio url's + Fixed play...
  3. 1.14 update V1.1

    Changes: + 1.14 support + Edited Syntax for playing music to - Edited Syntax for player music...

Latest reviews

Works great! I recommend it to anyone wanting to integrate MCJukeBox into their server in a clean fashion!
Lego_freak1999
Lego_freak1999
Thanks mate sry for late reply