A way to configure the M-timer sound and title that shows at the end

Is there a way to configure the Ender Dragon sound and the title "event.timeout.1" that shows when the timer runs out. I am about to run a large hide n' seek event, and I would love for this to be added, just a way to config the sound and title that shows, either in a config file or ingame
28 Replies
Miraculixx
Miraculixx2y ago
Response: https://discord.com/channels/908621996009619477/908621996676501570/1133086976673857546 In addition, currently you can not change the sound. But in theory you can create an addon (plugin) via the MTimer API that plays your own sound on timeout and stops the original sound
ragazaga
ragazagaOP2y ago
Thank you for the quick response. It would be really nice to be able to configure the sound, since the ender dragon sound can be a bit jarring. I really liked the "ping" sound used for when the timer is started. But thank you!
Miraculixx
Miraculixx2y ago
I'll think about a way to implement sound configuration. Maybe it could be added to the custom timer design creation
ragazaga
ragazagaOP2y ago
That would be awesome ^-^ I'm trying what you showed me, overwriting the en.US.yml file, but the file is being reset to it's default values. I'm probably misinterpreting the instructions xD
event:
millis: "Milliseconds"
seconds: "Seconds"
minutes: "Minutes"
hours: "Hours"
days: "Days"
active: "Active"
timeout:
event.timeout.1: "Round over!"
event.timeout.2: "GG"
disabled: "Disabled"
prefix: "Prefix"
suffix: "Suffix"
animation: "Animation Speed"
event:
millis: "Milliseconds"
seconds: "Seconds"
minutes: "Minutes"
hours: "Hours"
days: "Days"
active: "Active"
timeout:
event.timeout.1: "Round over!"
event.timeout.2: "GG"
disabled: "Disabled"
prefix: "Prefix"
suffix: "Suffix"
animation: "Animation Speed"
Miraculixx
Miraculixx2y ago
Yes, do not override the default language files. The plugin pulls the newest version and dump it on every restart. You can just copy the en_US.yml file and name it what ever you like. There you can edit everything and switch the language ingame via /timer language <your-name>
ragazaga
ragazagaOP2y ago
Sorry for misinterpreting it before, thank you so much for your help!
Miraculixx
Miraculixx2y ago
No problem 👍
ragazaga
ragazagaOP2y ago
I created a copy of the english file, renamed it to en_US_2.yml, then edited it
event:
millis: "Milliseconds"
seconds: "Seconds"
minutes: "Minutes"
hours: "Hours"
days: "Days"
active: "Active"
timeout:
1: "Round over!"
2: "GG"
disabled: "Disabled"
prefix: "Prefix"
suffix: "Suffix"
animation: "Animation Speed"
event:
millis: "Milliseconds"
seconds: "Seconds"
minutes: "Minutes"
hours: "Hours"
days: "Days"
active: "Active"
timeout:
1: "Round over!"
2: "GG"
disabled: "Disabled"
prefix: "Prefix"
suffix: "Suffix"
animation: "Animation Speed"
and then I used /timer language en_US_2 but it doesn't work :/
Miraculixx
Miraculixx2y ago
Oh i discovered an issue inside the main command. The timer still runs on an old system (bukkit-commands), i need to overhaul it in the future. Meanwhile, could you test this jar? Just swap the old jar with the new one while the server is stopped
ragazaga
ragazagaOP2y ago
I tried it, and I still get the default
No description
Miraculixx
Miraculixx2y ago
Did /timer language <key> reponse to you that the switch was successfull? And even then, it should display text now because i added the right key
ragazaga
ragazagaOP2y ago
Yup
No description
ragazaga
ragazagaOP2y ago
Oh wait, it says successful change to the default file, but I'm running /timer language en_US_2
ragazaga
ragazagaOP2y ago
server side it says it changed it to the correct file
No description
ragazaga
ragazagaOP2y ago
But yea it stills shows the "event.timeout.1" etc. I even cleared the plugin folder, so a clean plugin install
Miraculixx
Miraculixx2y ago
Okay, so the language swap works now properly at least (the ingame switch message is defined by a translation key). Now i need to dig deeper to find the issue...
ragazaga
ragazagaOP2y ago
Ah I see, does it work if you try it?
Miraculixx
Miraculixx2y ago
No, it did not translate on my testings too. I just dont know why at the moment
ragazaga
ragazagaOP2y ago
ah okay! is the current code up on github?
Miraculixx
Miraculixx2y ago
Oh yeah, if you understand Kotlin you can find the logic behind the timeout title here https://github.com/MUtils-MC/MUtils/blob/master/timer/paper/src/main/kotlin/de/miraculixx/mtimer/module/PaperTimer.kt#L66-L69
GitHub
MUtils/timer/paper/src/main/kotlin/de/miraculixx/mtimer/module/Pape...
MUtils is the biggest Challenge Utility Plugin in Minecraft! Play Challenges alone or with your friends and enjoy a completely new Minecraft! - MUtils-MC/MUtils
ragazaga
ragazagaOP2y ago
I know Java, not Kotlin, but it's basically the same. Though, I don't have the environment setup to troubleshoot or build it
Miraculixx
Miraculixx2y ago
You can clone the full repo if you want. But it includes more then just the timer and may need some time to setup Alright i found the issue and its stuipid YML seems to not allow simple numbers like 1 and 2 as key. If i replace them with some text it works
Miraculixx
Miraculixx2y ago
Once again, you can try this new jar. It works now on my end at least
ragazaga
ragazagaOP2y ago
oh lol xD Thaanks!
Miraculixx
Miraculixx2y ago
I hope it works :PEepoGlad:
ragazaga
ragazagaOP2y ago
It does :3
Miraculixx
Miraculixx2y ago
Custom Sounds are now added

Did you find this page helpful?