Discord Thread Problem with FunkySk Song End Event

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

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

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.

skUnity Discord

Site Manager
Aug 5, 2023
12,749
1
0
The skUnity Discord
discord.gg
Hi, I am trying to detect end of song in FunkySK, but the event is not triggered I guess. The song starts playing, but when the song stop, it does not broadcast "end". Any idea what is wrong?
code_language.skript:
on inventory click:
    if current inventory of player = (metadata tag "hudba" of player):
        cancel event
        if event-inventory = (metadata tag "hudba" of player):

            # RADIO
            if index of event-slot = 24:
                set {_s::*} to songs in file "plugins/Skript/Radio/"
                play song file "plugins/Skript/Radio/%(random element out of {_s::*})%" to player with id "radio"

on FunkySk song end with id "radio":
    broadcast "end"

Posted by: logr07 from the skUnity Discord. View the thread on skUnity Discord here
 
SongEndEvent:
enabled: true
patterns:
- '[FunkySk] [note[ ]block] song (end|destroy|stop)[ing] (with|of|for) id %string%'
- '[FunkySk] song id stop[ing] %string%'
on FunkySk noteblock song end with id %string%
or
on FunkySk song id stop %string%

Posted by: thisisausernameyes from the skUnity Discord.
 
It is inside the {_s::*} variable which contains list of songs (ex: song1.nbs, song2.nbs, ...). So the play effect looks for example like this: play song file "plugins/Skript/Radio/song1.nbs" to player with id "radio". But I have no problem with this. This works exactly how I want.
I have problem with detecting end of the song, which does not trigger the event (does not broadcast "end"):
code_language.skript:
on FunkySk song end with id "radio":
    broadcast "end"

Posted by: logr07 from the skUnity Discord.
 
I just found this on server start:
code_language.skript:
14:28:20[INFO] [FunkySk] Enabling FunkySk v1.0.2
14:28:20[INFO] [FunkySk] New update found! Updating files now...
14:28:20[INFO] [Skript] Missing lang enum constant for 'funkysoundcategorys.MASTER'
14:28:20[INFO] [Skript] Missing lang enum constant for 'funkysoundcategorys.MUSIC'
14:28:20[INFO] [Skript] Missing lang enum constant for 'funkysoundcategorys.RECORDS'
14:28:20[INFO] [Skript] Missing lang enum constant for 'funkysoundcategorys.WEATHER'
14:28:20[INFO] [Skript] Missing lang enum constant for 'funkysoundcategorys.BLOCKS'
14:28:20[INFO] [Skript] Missing lang enum constant for 'funkysoundcategorys.HOSTILE'
14:28:20[INFO] [Skript] Missing lang enum constant for 'funkysoundcategorys.NEUTRAL'
14:28:20[INFO] [Skript] Missing lang enum constant for 'funkysoundcategorys.PLAYERS'
14:28:20[INFO] [Skript] Missing lang enum constant for 'funkysoundcategorys.AMBIENT'
14:28:20[INFO] [Skript] Missing lang enum constant for 'funkysoundcategorys.VOICE'
14:28:20[WARN] [zAuctionHouseV3] Unable to retrieve the provider interface net.milkbowl.vault.economy.Economy
14:28:20[INFO] [zAuctionHouseV3 v3.0.8.4] Impossible to find vault, your server is working properly?
14:28:20[WARN] [FunkySk] "FunkySk v1.0.2" has registered a listener for com.xxmicloxx.NoteBlockAPI.SongStoppedEvent on method "public void me.limeglass.funky.listeners.MusicListener.onSongStop(com.xxmicloxx.NoteBlockAPI.SongStoppedEvent)", but the event
is Deprecated. "Server performance will be affected"; please notify the authors [LimeGlass].
14:28:20[WARN] [FunkySk] "FunkySk v1.0.2" has registered a listener for com.xxmicloxx.NoteBlockAPI.SongEndEvent on method "public void me.limeglass.funky.listeners.MusicListener.onSongEnd(com.xxmicloxx.NoteBlockAPI.SongEndEvent)", but the event is Deprec
ated. "Server performance will be affected"; please notify the authors [LimeGlass].
14:28:20[WARN] [FunkySk] "FunkySk v1.0.2" has registered a listener for com.xxmicloxx.NoteBlockAPI.SongDestroyingEvent on method "public void me.limeglass.funky.listeners.MusicListener.onSongDestory(com.xxmicloxx.NoteBlockAPI.SongDestroyingEvent)", but t
he event is Deprecated. "Server performance will be affected"; please notify the authors [LimeGlass].
14:28:20[INFO] [FunkySk] has been enabled!

Posted by: logr07 from the skUnity Discord.
 
code_language.skript:
14:28:20[WARN] [FunkySk] "FunkySk v1.0.2" has registered a listener for com.xxmicloxx.NoteBlockAPI.SongStoppedEvent on method "public void me.limeglass.funky.listeners.MusicListener.onSongStop(com.xxmicloxx.NoteBlockAPI.SongStoppedEvent)", but the event
is Deprecated. "Server performance will be affected"; please notify the authors [LimeGlass].
idk about the lang
but that's probably why the event doesn't work

Posted by: lim420 from the skUnity Discord.
 
Status
Not open for further replies.