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
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
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!
I'll think about a way to implement sound configuration. Maybe it could be added to the custom timer design creation
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
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>
Sorry for misinterpreting it before, thank you so much for your help!
No problem 👍
I created a copy of the english file, renamed it to en_US_2.yml, then edited it
and then I used
/timer language en_US_2
but it doesn't work :/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
I tried it, and I still get the default

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 keyYup

Oh wait, it says successful change to the default file, but I'm running
/timer language en_US_2
server side it says it changed it to the correct file

But yea it stills shows the "event.timeout.1" etc. I even cleared the plugin folder, so a clean plugin install
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...
Ah I see, does it work if you try it?
No, it did not translate on my testings too. I just dont know why at the moment
ah okay!
is the current code up on github?
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
Translations are defined inside the global Localization class
https://github.com/MUtils-MC/MUtils/blob/master/vanilla/src/main/kotlin/de/miraculixx/mvanilla/messages/Localization.kt#L16
I know Java, not Kotlin, but it's basically the same. Though, I don't have the environment setup to troubleshoot or build it
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 worksOnce again, you can try this new jar. It works now on my end at least
oh lol xD
Thaanks!
I hope it works :PEepoGlad:
It does :3
Custom Sounds are now added