Skip to content

Commit 7182695

Browse files
committed
tweaks
1 parent a2f4c58 commit 7182695

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

client/public/en.lang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ vc.state.error.fix2=Check if your browser has microphone permissions
110110
vc.state.error.fix3=Try refreshing the page
111111
vc.state.error.fix4=The server might be full and not have any more voice slots available
112112

113-
vc.channel.title=Voice Channels
113+
vc.channel.title=Non-proximity Voice Channels
114114
vc.channel.single=channel
115115
vc.channel.multiple=channels
116116
vc.channel.moreMembers=more members

client/public/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"buildMajor":1,"buildMinor":125,"buildRevision":287,"buildTag":"dev","buildDate":"Sat Dec 07 2024","build":"1.125.287 dev"}
1+
{"buildMajor":1,"buildMinor":125,"buildRevision":288,"buildTag":"dev","buildDate":"Sun Feb 02 2025","build":"1.125.288 dev"}

client/src/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"buildMajor":1,"buildMinor":125,"buildRevision":287,"buildTag":"dev","buildDate":"Sat Dec 07 2024","build":"1.125.287 dev"}
1+
{"buildMajor":1,"buildMinor":125,"buildRevision":288,"buildTag":"dev","buildDate":"Sun Feb 02 2025","build":"1.125.288 dev"}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ public void onEnable() {
6161
if (firstRun) {
6262
int maxDistance = StorageKey.SETTINGS_VC_RADIUS.getInt();
6363

64+
// must be between 5 and 200 (inclusive)
65+
if (maxDistance < 5 || maxDistance > 200) {
66+
OpenAudioLogger.warn("Invalid voice chat radius (" + maxDistance + "), resetting to 50");
67+
maxDistance = 50;
68+
}
69+
6470
// tick every second
6571
peerTicker = new PlayerPeerTicker(maxDistance, new PeerFilter());
6672
taskService.scheduleAsyncRepeatingTask(peerTicker, 20, 20);

plugin/src/main/resources/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ options:
221221
# Garbage collection strategy, it only removes it from the cache by default but you can set it to "INVALIDATE" to keep values until reboot
222222
gc-strategy: DELETE
223223

224-
# Required distance for proximity voice chat. Must be between 20 and 70
224+
# Required distance for proximity voice chat. Must be between 5 and 200
225225
voicechat-radius: 45
226226

227227
# Chat announcements for players to notify them of others entering/leaving their voice chat proximity
@@ -311,7 +311,7 @@ vc-filter:
311311
require-common-team: false
312312

313313
# When enabled, players will be excluded from *proximity* voicechat as long as they are in a channel
314-
require-no-channel: true
314+
require-no-channel: false
315315

316316
# Static channels are a set of channels that will always exist (even if they are empty), and can be locked behind certain permissions
317317
# You can use this feature in cases where individuals don't have permissions to create their own channels, but sitll want to offer

0 commit comments

Comments
 (0)