1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  1. Lego_freak1999
    Contributors:
    Lego_freak1999
    Supported Minecraft Versions:
    • 1.12, 1.13, 1.14
    This skript api allows you to interact with the plugin MCjukebox: https://www.spigotmc.org/resources/mcjukebox.16024/ .


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

    Code (Text):
    1. command /playsoundeffect:
    2.     trigger:
    3.         MCJukebox play "URL" at volume 100 with media type sound effect to player
    4.  
    5. command /playmusic:
    6.     trigger:
    7.         MCJukebox play "URL" at volume 100 with media type music to player
    8.  
    9. command /stopmusic:
    10.     trigger:
    11.         MCJukebox stop music with fade out 3 to player
    12.  
    13. command /stopall:
    14.     trigger:
    15.         MCJukebox stop all with fade out 3 to player
    16.  
    17. command /token:
    18.     trigger:
    19.         message MCJukebox token of player
    20.  
    21. # command /audio:
    22.    # trigger:
    23.        # 1.12 1.13
    24.        # message MCJukebox url of player
    25.        # 1.14+
    26.        # message formatted MCJukebox url of player
    27.  
    28. #Currently not working on 1.14+ due to bug/issue in Mcjukebox https://github.com/oliverdunk/JukeboxAPI/issues/44
    29. import:
    30.     net.mcjukebox.plugin.bukkit.events.ClientConnectEvent
    31.     net.mcjukebox.plugin.bukkit.events.ClientDisconnectEvent
    32.  
    33. on ClientConnectEvent:
    34.     set {_player} to event.getUsername() parsed as a player
    35.  
    36. on ClientDisconnectEvent:
    37.     set {_player} to event.getUsername() parsed as a player
    38.  

    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!
    ExCorde likes this.

Recent Reviews

  1. Blue
    Blue
    5/5,
    Version: 1.1.2
    Works great! I recommend it to anyone wanting to integrate MCJukeBox into their server in a clean fashion!
    1. Lego_freak1999
      Author's Response
      Thanks mate sry for late reply