Skip to content

Commit 7f09ad5

Browse files
authored
Merge pull request #459 from Mindgamesnl/feature/fix-mods-in-messages
Hide moderators in messages
2 parents 1c5b4c7 + 28dac5d commit 7f09ad5

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
java openjdk-17
1+
java openjdk-21

plugin/src/main/bash/data.bin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
BUILD_NUM="1456"
1+
BUILD_NUM="1458"

plugin/src/main/java/com/craftmend/openaudiomc/spigot/modules/voicechat/SpigotVoiceChatService.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ public void onEnable() {
110110
// go over every player and handle their message queue
111111
for (ClientConnection client : networkingService.getClients()) {
112112
RtcSessionManager manager = client.getRtcSessionManager();
113+
114+
// remove mods
115+
manager.getCurrentProximityAdditions()
116+
.removeIf(uuid -> clientFromId(uuid).isModerating());
117+
manager.getCurrentProximityDrops()
118+
.removeIf(uuid -> clientFromId(uuid).isModerating());
119+
113120
// handle their join messages, if any
114121
if (!manager.getCurrentProximityAdditions().isEmpty()) {
115122
// do these

plugin/src/main/resources/data.bin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
BUILD_NUM="1456"
1+
BUILD_NUM="1458"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
BUILD_VERSION="1456"
2-
BUILD_COMMIT="586163790a59cb378cdfe4701acca55f9edfd64c"
3-
BUILD_AUTHOR="Mats"
1+
BUILD_VERSION="1458"
2+
BUILD_COMMIT="461fcc4bfc82654a0863e0b2fbd68555673c3bb1"
3+
BUILD_AUTHOR="Mats"

0 commit comments

Comments
 (0)