diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2e6a914c..7a27884c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,12 @@
+## JJMumbleBot v5.3.1 - Login sounds fixes
+This project is no longer under active development, and the bot is being reworked in the following rework project: [Mumimo](https://github.com/DuckBoss/Mumimo)
+However, I still use this older version of the bot and try to fix bugs when I find them, so here it is.
+
+### Fixes
+- Server Tools Plugin:
+ - Fixed login/user-connection sounds: The feature to play a 'connection sound' when a user connects to the server is
+ fixed with this update. You should now be able to set login sounds and it should play when the user connects to the server as it used to work before.
+
## JJMumbleBot v5.3.0 - New features and fixes
This project is no longer under active development, and the bot is being reworked in the following rework project: [Mumimo](https://github.com/DuckBoss/Mumimo)
diff --git a/JJMumbleBot/lib/resources/strings.py b/JJMumbleBot/lib/resources/strings.py
index 1f56f596..43b3f523 100644
--- a/JJMumbleBot/lib/resources/strings.py
+++ b/JJMumbleBot/lib/resources/strings.py
@@ -129,5 +129,5 @@
###########################################################################
# BOT META INFORMATION STRINGS
META_NAME = "JJMumbleBot"
-META_VERSION = "5.3.0"
+META_VERSION = "5.3.1"
###########################################################################
diff --git a/JJMumbleBot/plugins/core/server_tools/metadata.ini b/JJMumbleBot/plugins/core/server_tools/metadata.ini
index 7632e62a..8d59f74a 100644
--- a/JJMumbleBot/plugins/core/server_tools/metadata.ini
+++ b/JJMumbleBot/plugins/core/server_tools/metadata.ini
@@ -1,5 +1,5 @@
[Plugin Information]
-PluginVersion = 5.3.0
+PluginVersion = 5.3.1
PluginName = Server Tools
PluginDescription = The Server Tools plugin is a miscellaneous collection of callbacks that are automatically executed on server events.
PluginLanguage = EN
diff --git a/JJMumbleBot/plugins/core/server_tools/server_tools.py b/JJMumbleBot/plugins/core/server_tools/server_tools.py
index 417906b6..3d73aa93 100644
--- a/JJMumbleBot/plugins/core/server_tools/server_tools.py
+++ b/JJMumbleBot/plugins/core/server_tools/server_tools.py
@@ -131,13 +131,15 @@ def util_find_sb_file(self, file_name):
return None
def util_find_and_create_track(self, file_name) -> Union[TrackInfo, None]:
+ file_track = None
if self.metadata.getboolean(
C_PLUGIN_SET, P_USE_SOUNDBOARD_CLIPS, fallback=True
):
- if self.util_find_sb_file(file_name):
+ file_track = self.util_find_sb_file(file_name)
+ if file_track is not None:
return TrackInfo(
- uri=f"{get_perm_med_dir()}/sound_board/{file_name}",
- alt_uri=f"{get_perm_med_dir()}/sound_board/{file_name}",
+ uri=f"{get_perm_med_dir()}/sound_board/{file_track}",
+ alt_uri=f"{get_perm_med_dir()}/sound_board/{file_track}",
name=file_name,
sender=get_bot_name(),
duration=None,
@@ -146,10 +148,11 @@ def util_find_and_create_track(self, file_name) -> Union[TrackInfo, None]:
)
return None
else:
- if self.util_find_file(file_name):
+ file_track = self.util_find_file(file_name)
+ if file_track is not None:
return TrackInfo(
- uri=f"{get_perm_med_dir()}/{self.plugin_name}/{file_name}",
- alt_uri=f"{get_perm_med_dir()}/{self.plugin_name}/{file_name}",
+ uri=f"{get_perm_med_dir()}/{self.plugin_name}/{file_track}",
+ alt_uri=f"{get_perm_med_dir()}/{self.plugin_name}/{file_track}",
name=file_name,
sender=get_bot_name(),
duration=None,
diff --git a/docs/wiki/new/whats_new.html b/docs/wiki/new/whats_new.html
index 70d8f576..3927c5a3 100644
--- a/docs/wiki/new/whats_new.html
+++ b/docs/wiki/new/whats_new.html
@@ -2,7 +2,7 @@
- JJMumbleBot - What's New [v5.3.0]
+ JJMumbleBot - What's New [v5.3.1]
@@ -12,12 +12,28 @@
+ Fixed login/user-connection sounds: The feature to play a 'connection sound' when a user connects to the server is
+ fixed with this update. You should now be able to set login sounds and it should play when the user connects to the server as it used to work before.
+
Update Guide To v5.3.0 For v5.1.0 and v5.1.1 Users
+
Update Guide To v5.3.0+ For v5.1.0 and v5.1.1 Users
Click Here To View Guide
@@ -165,6 +181,8 @@
Update Guide To v5.3.0 For v5.1.0 and v<
The feature to play a 'connection sound' when a user connects to the server is currently broken.
I highly suggest not using this feature. I don't plan on fixing it in this project and I will be addressing it in the larger rework project 'Mumimo'.
If you still decide to use it and the audio queue freezes, simply use !stop to flush the audio queue.
+
+ UPDATE: This has been resolved in v5.3.1+