Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Song End Event does not work #9

Open
Logr07 opened this issue Aug 1, 2023 · 2 comments
Open

Song End Event does not work #9

Logr07 opened this issue Aug 1, 2023 · 2 comments

Comments

@Logr07
Copy link

Logr07 commented Aug 1, 2023

Hello, I am trying to detect end of song, but the event is not triggered I guess. The song starts playing, but when the song ends, it does not broadcast "end".

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"
    
    
13:58:08[INFO] [Skript] Server Version: git-Purpur-1985 (MC: 1.19.4)
13:58:08[INFO] [Skript] Skript Version: 2.7.0-beta3 (skriptlang-github)
13:58:08[INFO] [Skript] Installed Skript Addons:
13:58:08[INFO] [Skript] - skript-placeholders v1.5.2 (https://github.com/APickledWalrus/skript-placeholders)
13:58:08[INFO] [Skript] - DiSky v4.8.0
13:58:08[INFO] [Skript] - skript-reflect v2.3.1-for-skript-beta (https://github.com/TPGamesNL/skript-reflect)
13:58:08[INFO] [Skript] - SkBee v3.0.0-alpha2 (https://github.com/ShaneBeee/SkBee)
13:58:08[INFO] [Skript] - skript-holo v1.0.2 (https://github.com/Blueyescat/skript-holo)
13:58:08[INFO] [Skript] - FunkySk v1.0.2
13:58:08[INFO] [Skript] Installed dependencies:
13:58:08[INFO] [Skript] - Vault v1.7.3-CMI
13:58:08[INFO] [Skript] - WorldGuard v7.0.7+216b061
13:58:08[INFO] [Skript] - Residence v5.1.1.0

NoteBlockAPI version 1.6.2
@Logr07
Copy link
Author

Logr07 commented Aug 1, 2023

I just find this in console on server start:

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!

@LiritoMC
Copy link

It seems that DiSky v4.8.0 could cause that issue or try doing a way to add Missing lang enum constant...

btw @Logr07 you got a way to stop a song?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants