MCJukeBox [SK]

  • 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!

Lego_freak1999

Well-Known Member
Jan 26, 2017
658
45
28
25
HTTP-410
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 %text% 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:
        message MCJukebox url of player

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:!
 
Last edited: