Hello,
I have problems with sound and don't know what the problem is everything except this:
This is the code online that I found:
I have problems with sound and don't know what the problem is everything except this:
Code:
play sound "RECORD_WAIT" to player
Code:
# Jukebox Radio Release 1, created by Evelon for release on SpigotMC and SKUnity.
#
# Requires SKQuery for use of GUIs and the sound broadcaster.
# This skript file also contains an optional TuSKe version of the GUI at line 81, incase if you find the in-use SKQuery GUI absolutely horrid.
#
# After using this Skript, please give me a review! I welcome all feedback. ~ Evelon
on script load:
send "&b[&3&lJukebox Radio&r&b] &9Skript has been successfully loaded." to console
command /jukebox [<text>]:
aliases: serverjukebox, juke, jukeboxall, jukeboxradio
permission: evelon.jukebox
permission message: &b[&3&lJukeboxRadio&r&b] &cInsufficient permissions.
trigger:
if arg 1 is "reload":
execute console command "skript reload JukeboxRadio"
if arg 1 is not set:
open chest with 4 rows named "&9&lJukebox Radio" to player
wait 1 tick
format slot 10 of player with record cat named "&3Broadcast &aCat" with lore "&7Play &aCat &7across the entire server." to close then run "playall cat"
format slot 11 of player with record ward named "&3Broadcast &2Ward" with lore "&7Play &2Ward &7across the entire server." to close then run "playall ward"
format slot 12 of player with record blocks named "&3Broadcast &cBlocks" with lore "&7Play &cBlocks &7across the entire server." to close then run "playall blocks"
format slot 13 of player with record wait named "&3Broadcast &bWait" with lore "&7Play &bWait &7across the entire server." to close then run "playall wait"
format slot 14 of player with record chirp named "&3Broadcast &4Chirp" with lore "&7Play &4Chirp &7across the entire server." to close then run "playall chirp"
format slot 15 of player with record stal named "&3Broadcast &8Stal" with lore "&7Play &8Stal &7across the entire server." to close then run "playall stal"
format slot 16 of player with record strad named "&3Broadcast &fStrad" with lore "&7Play &fStrad &7across the entire server." to close then run "playall strad"
format slot 20 of player with record 11 named "&3Broadcast &811" with lore "&7Play &811 &7across the entire server." to close then run "playall 11"
format slot 21 of player with record mellohi named "&3Broadcast &dMellohi" with lore "&7Play &dMellohi &7across the entire server." to close then run "playall mellohi"
format slot 22 of player with record mall named "&3Broadcast &5Mall" with lore "&7Play &5Mall &7across the entire server." to close then run "playall mall"
format slot 23 of player with record far named "&3Broadcast &aFar" with lore "&7Play &aFar &7across the entire server." to close then run "playall far"
format slot 24 of player with record 13 named "&3Broadcast &e13" with lore "&7Play &e13 &7across the entire server." to close then run "playall 13"
command /playall <text>:
permission: evelon.jukebox
permission message: &b[&3&lJukeboxRadio&r&b] &cInsufficient permissions.
trigger:
if arg 1 is "cat":
broadcast "&b[&3&lJukebox Radio&r&b] &bNow broadcasting &aCat &bacross the server..."
play sound "RECORD_CAT" to all players
if arg 1 is "stal":
broadcast "&b[&3&lJukebox Radio&r&b] &bNow broadcasting &8Stal &bacross the server..."
play sound "RECORD_STAL" to all players
if arg 1 is "chirp":
broadcast "&b[&3&lJukebox Radio&r&b] &bNow broadcasting &4Chirp &bacross the server..."
play sound "RECORD_CHIRP" to all players
if arg 1 is "blocks":
broadcast "&b[&3&lJukebox Radio&r&b] &bNow broadcasting &cBlocks &bacross the server..."
play sound "RECORD_BLOCKS" to all players
if arg 1 is "mellohi":
broadcast "&b[&3&lJukebox Radio&r&b] &bNow broadcasting &dMellohi &bacross the server..."
play sound "RECORD_MELLOHI" to all players
if arg 1 is "mall":
broadcast "&b[&3&lJukebox Radio&r&b] &bNow broadcasting &5Mall &bacross the server..."
play sound "RECORD_MALL" to all players
if arg 1 is "stal":
broadcast "&b[&3&lJukebox Radio&r&b] &bNow broadcasting &8Stal &bacross the server..."
play sound "RECORD_STAL" to all players
if arg 1 is "strad":
broadcast "&b[&3&lJukebox Radio&r&b] &bNow broadcasting &fStrad &bacross the server..."
play sound "RECORD_STRAD" to all players
if arg 1 is "wait":
broadcast "&b[&3&lJukebox Radio&r&b] &bNow broadcasting &bWait &bacross the server..."
play sound "RECORD_WAIT" to all players
if arg 1 is "far":
broadcast "&b[&3&lJukebox Radio&r&b] &bNow broadcasting &aFar &bacross the server..."
play sound "RECORD_FAR" to all players
if arg 1 is "11":
broadcast "&b[&3&lJukebox Radio&r&b] &bNow broadcasting &811 &bacross the server..."
play sound "RECORD_11" to all players
if arg 1 is "13":
broadcast "&b[&3&lJukebox Radio&r&b] &bNow broadcasting &e13 &bacross the server..."
play sound "RECORD_13" to all players
if arg 1 is not set:
send "&b[&3&lJukebox Radio&r&b] &cYou need to specify a track to play!"
# Optional TuSKe version of the Jukebox Radio GUI
#
#command /jukebox [<text>]:
# aliases: serverjukebox, juke, jukeboxall, jukeboxradio
# permission: evelon.jukebox
# permission message: &b[&3&lJukeboxRadio&r&b] &cInsufficient permissions.
# trigger:
# if arg 1 is "reload":
# execute console command "/skript reload JukeboxRadio"
# if arg 1 is not set:
# set {_bg::*} to 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 19, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34 and 35
# open chest with 4 rows named "&9&lJukebox Radio" to player
# make gui slot {_bg::*} of player with black glass pane named "&b" to do nothing
# make gui slot 10 of player with record cat named "&3Broadcast &aCat" with lore "&7Play &aCat &7across the entire server." to close then run player command "/playall cat"
# make gui slot 11 of player with record ward named "&3Broadcast &2Ward" with lore "&7Play &2Ward &7across the entire server." to close then run player command "/playall ward"
# make gui slot 12 of player with record blocks named "&3Broadcast &cBlocks" with lore "&7Play &cBlocks &7across the entire server." to close then run player command "/playall blocks"
# make gui slot 13 of player with record wait named "&3Broadcast &bWait" with lore "&7Play &bWait &7across the entire server." to close then run player command "/playall wait"
# make gui slot 14 of player with record chirp named "&3Broadcast &4Chirp" with lore "&7Play &4Chirp &7across the entire server." to close then run player command "/playall chirp"
# make gui slot 15 of player with record stal named "&3Broadcast &8Stal" with lore "&7Play &8Stal &7across the entire server." to close then run player command "/playall stal"
# make gui slot 16 of player with record strad named "&3Broadcast &fStrad" with lore "&7Play &fStrad &7across the entire server." to close then run player command "/playall strad"
# make gui slot 20 of player with record 11 named "&3Broadcast &811" with lore "&7Play &811 &7across the entire server." to close then run player command "/playall 11"
# make gui slot 21 of player with record mellohi named "&3Broadcast &dMellohi" with lore "&7Play &dMellohi &7across the entire server." to close then run player command "/playall mellohi"
# make gui slot 22 of player with record mall named "&3Broadcast &5Mall" with lore "&7Play &5Mall &7across the entire server." to close then run player command "/playall mall"
# make gui slot 23 of player with record far named "&3Broadcast &aFar" with lore "&7Play &aFar &7across the entire server." to close then run player command "/playall far"
# make gui slot 24 of player with record 13 named "&3Broadcast &e13" with lore "&7Play &e13 &7across the entire server." to close then run player command "/playall 13"