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.

API MCJukeBox [SK] 1.0

Api for the plugin MCJukebox

  1. L
    Contributors:
    Lego_freak1999
    Supported Minecraft Versions:
    • 1.12, 1.13
    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 %text% 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.         message MCJukebox url of player
    24.  
    25. import:
    26.     net.mcjukebox.plugin.bukkit.events.ClientConnectEvent
    27.     net.mcjukebox.plugin.bukkit.events.ClientDisconnectEvent
    28.  
    29. on ClientConnectEvent:
    30.     set {_player} to event.getUsername() parsed as a player
    31.  
    32. on ClientDisconnectEvent:
    33.     set {_player} to event.getUsername() parsed as a player
    34.  

    Have fun :emoji_grinning:!

    50 Downloads! Yeah