Fix Language and remove PL

This commit is contained in:
asminme committed 2026-10-24 21:15:00 +02:00
1 parent 33b6609c13
commit 578e01eda3
5 files changed
+41 -76

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ jobs:
run: | run: |
latest="$(git tag --list 'v[0-9]*' --sort=-version:refname | head -n 1)" latest="$(git tag --list 'v[0-9]*' --sort=-version:refname | head -n 1)"
if [[ -z "$latest" ]]; then if [[ -z "$latest" ]]; then
version="1.0.1" version="1.0.3"
else else
current="${latest#v}" current="${latest#v}"
IFS='.' read -r major minor patch <<< "$current" IFS='.' read -r major minor patch <<< "$current"
+1
View File
@@ -3,3 +3,4 @@ build/
*.class *.class
*.log *.log
/LOCAL_AI_NOTES.md /LOCAL_AI_NOTES.md
AsminVoiceChat-*.jar
+1 -1
View File
@@ -6,7 +6,7 @@ plugins {
} }
group = 'de.maxhenkel.voicechat' group = 'de.maxhenkel.voicechat'
version = findProperty('buildVersion') ?: '1.0.1' version = findProperty('buildVersion') ?: '1.0.3'
java { java {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_1_8
+1 -1
View File
@@ -1,5 +1,5 @@
name: AsminVoicechat name: AsminVoicechat
version: 1.0.1 version: 1.0.3
main: de.maxhenkel.voicechat.Voicechat main: de.maxhenkel.voicechat.Voicechat
api-version: '1.13' api-version: '1.13'
prefix: AsminVoicechat prefix: AsminVoicechat
@@ -27,133 +27,97 @@ public class ServerConfig {
public ConfigEntry<Boolean> threadedServerSupport; public ConfigEntry<Boolean> threadedServerSupport;
public ServerConfig(ConfigBuilder builder) { public ServerConfig(ConfigBuilder builder) {
builder.header(String.format("AsminVoiceChat (Simple Voice Chat) server config v%s", Voicechat.INSTANCE.getDescription().getVersion())); builder.header("AsminVoiceChat (Simple Voice Chat) server config v1.0.2");
voiceChatPort = builder voiceChatPort = builder
.integerEntry("port", 24454, -1, 65535, .integerEntry("port", 24454, -1, 65535,
"EN: The port number to use for the voice chat communication.", "The port number to use for the voice chat communication.",
"PL: Port używany do komunikacji czatu głosowego.", "Audio packets are always transmitted via the UDP protocol on the port number",
"EN: Audio packets are always transmitted via the UDP protocol on the port number", "specified here, independently of other networking used for the game server.",
"PL: Pakiety audio są zawsze przesyłane przez UDP na porcie wskazanym tutaj,", "Set this to '-1' to use the same port number that is used by the Minecraft server.",
"EN: specified here, independently of other networking used for the game server.", "However, it is strongly recommended NOT to use the same port number because UDP on",
"PL: niezależnie od pozostałej komunikacji sieciowej serwera gry.", "it is also used by default for the server query. Doing so may crash the server!"
"EN: Set this to '-1' to use the same port number that is used by the Minecraft server.",
"PL: Ustaw '-1', aby użyć tego samego portu co serwer Minecraft.",
"EN: However, it is strongly recommended NOT to use the same port number because UDP on",
"PL: Zdecydowanie zaleca się użycie innego portu, ponieważ UDP na tym porcie jest domyślnie używane także przez zapytania serwera.",
"EN: it is also used by default for the server query. Doing so may crash the server!",
"PL: Użycie tego samego portu może spowodować awarię serwera!"
); );
voiceChatBindAddress = builder voiceChatBindAddress = builder
.stringEntry("bind_address", "", .stringEntry("bind_address", "",
"EN: The server IP address to bind the voice chat to", "The server IP address to bind the voice chat to",
"PL: Adres IP serwera, na którym ma nasłuchiwać czat głosowy.", "Leave blank to use the 'server-ip' property from the 'server.properties' config file",
"EN: Leave blank to use the 'server-ip' property from the 'server.properties' config file", "To bind to the wildcard IP address, use '*'"
"PL: Pozostaw puste, aby użyć wartości 'server-ip' z pliku 'server.properties'.",
"EN: To bind to the wildcard IP address, use '*'",
"PL: Aby nasłuchiwać na wszystkich interfejsach sieciowych, wpisz '*'."
); );
voiceChatDistance = builder voiceChatDistance = builder
.doubleEntry("max_voice_distance", 48D, 1D, 1_000_000D, .doubleEntry("max_voice_distance", 48D, 1D, 1_000_000D,
"EN: The distance to which the voice can be heard", "The distance to which the voice can be heard"
"PL: Maksymalna odległość, z której słychać głos."
); );
whisperDistance = builder whisperDistance = builder
.doubleEntry("whisper_distance", 24D, 1D, 1_000_000D, .doubleEntry("whisper_distance", 24D, 1D, 1_000_000D,
"EN: The distance to which the voice can be heard when whispering", "The distance to which the voice can be heard when whispering"
"PL: Maksymalna odległość, z której słychać szept."
); );
voiceChatCodec = builder voiceChatCodec = builder
.enumEntry("codec", Codec.VOIP, .enumEntry("codec", Codec.VOIP,
"EN: The Opus codec", "The Opus codec",
"PL: Używany kodek Opus.", "Valid values are 'VOIP', 'AUDIO', and 'RESTRICTED_LOWDELAY'"
"EN: Valid values are 'VOIP', 'AUDIO', and 'RESTRICTED_LOWDELAY'",
"PL: Dozwolone wartości: 'VOIP', 'AUDIO' oraz 'RESTRICTED_LOWDELAY'."
); );
voiceChatMtuSize = builder voiceChatMtuSize = builder
.integerEntry("mtu_size", AudioUtils.MAX_OPUS_PAYLOAD_SIZE, 512, 2048, .integerEntry("mtu_size", AudioUtils.MAX_OPUS_PAYLOAD_SIZE, 512, 2048,
"EN: The maximum size that audio packets are allowed to have (in bytes)", "The maximum size that audio packets are allowed to have (in bytes)",
"PL: Maksymalny rozmiar pakietu audio w bajtach.", "Setting this to lower values might cause issues"
"EN: Setting this to lower values might cause issues",
"PL: Ustawienie mniejszej wartości może powodować problemy."
); );
tcpRateLimit = builder tcpRateLimit = builder
.integerEntry("tcp_rate_limit", 16, -1, 1024, .integerEntry("tcp_rate_limit", 16, -1, 1024,
"EN: The maximum number of packets a player can send per second", "The maximum number of packets a player can send per second",
"PL: Maksymalna liczba pakietów, które gracz może wysłać w ciągu sekundy.", "Set this to -1 to disable the rate limit - This must be greater than 0 in all other cases",
"EN: Set this to -1 to disable the rate limit - This must be greater than 0 in all other cases", "This only applies to voice chat packets that are sent through Minecrafts networking",
"PL: Ustaw '-1', aby wyłączyć limit. W pozostałych przypadkach wartość musi być większa od 0.", "This affects actions like opening/joining/leaving voice chat groups or general state changes like disabling/enabling the voice chat"
"EN: This only applies to voice chat packets that are sent through Minecrafts networking",
"PL: Limit dotyczy tylko pakietów voice chatu przesyłanych przez sieć Minecrafta.",
"EN: This affects actions like opening/joining/leaving voice chat groups or general state changes like disabling/enabling the voice chat",
"PL: Obejmuje m.in. otwieranie, dołączanie i opuszczanie grup oraz włączanie lub wyłączanie voice chatu."
); );
keepAlive = builder keepAlive = builder
.integerEntry("keep_alive", 1000, 1000, Integer.MAX_VALUE, .integerEntry("keep_alive", 1000, 1000, Integer.MAX_VALUE,
"EN: The frequency at which keep-alive packets are sent (in milliseconds)", "The frequency at which keep-alive packets are sent (in milliseconds)",
"PL: Częstotliwość wysyłania pakietów keep-alive w milisekundach.", "Setting this to a higher value may result in timeouts"
"EN: Setting this to a higher value may result in timeouts",
"PL: Ustawienie większej wartości może powodować przekroczenia czasu połączenia."
); );
groupsEnabled = builder groupsEnabled = builder
.booleanEntry("enable_groups", true, .booleanEntry("enable_groups", true,
"EN: If group chats are allowed", "If group chats are allowed"
"PL: Czy rozmowy grupowe są dozwolone."
); );
voiceHost = builder voiceHost = builder
.stringEntry("voice_host", "", .stringEntry("voice_host", "",
"EN: The hostname that clients should use to connect to the voice chat", "The hostname that clients should use to connect to the voice chat",
"PL: Nazwa hosta, której klienci używają do łączenia się z voice chatem.", "This may also include a port, e.g. 'example.com:24454'",
"EN: This may also include a port, e.g. 'example.com:24454'", "Do NOT change this value if you don't know what you're doing"
"PL: Możesz podać również port, np. 'example.com:24454'.",
"EN: Do NOT change this value if you don't know what you're doing",
"PL: Nie zmieniaj tej wartości, jeśli nie wiesz, do czego służy."
); );
allowRecording = builder allowRecording = builder
.booleanEntry("allow_recording", true, .booleanEntry("allow_recording", true,
"EN: If players are allowed to record the voice chat audio", "If players are allowed to record the voice chat audio"
"PL: Czy gracze mogą nagrywać dźwięk z voice chatu."
); );
spectatorInteraction = builder spectatorInteraction = builder
.booleanEntry("spectator_interaction", false, .booleanEntry("spectator_interaction", false,
"EN: If spectators are allowed to talk to other players", "If spectators are allowed to talk to other players"
"PL: Czy widzowie mogą rozmawiać z innymi graczami."
); );
spectatorPlayerPossession = builder spectatorPlayerPossession = builder
.booleanEntry("spectator_player_possession", false, .booleanEntry("spectator_player_possession", false,
"EN: If spectators can talk to players they are spectating", "If spectators can talk to players they are spectating"
"PL: Czy widz może rozmawiać z graczem, którego obserwuje."
); );
forceVoiceChat = builder forceVoiceChat = builder
.booleanEntry("force_voice_chat", false, .booleanEntry("force_voice_chat", false,
"EN: If players without the voice chat mod should be kicked from the server", "If players without the voice chat mod should be kicked from the server"
"PL: Czy gracze bez moda voice chatu mają być wyrzucani z serwera."
); );
loginTimeout = builder loginTimeout = builder
.integerEntry("login_timeout", 10_000, 100, Integer.MAX_VALUE, .integerEntry("login_timeout", 10_000, 100, Integer.MAX_VALUE,
"EN: The amount of time the server should wait to check if a player has the mod installed (in milliseconds)", "The amount of time the server should wait to check if a player has the mod installed (in milliseconds)",
"PL: Czas oczekiwania na sprawdzenie, czy gracz ma zainstalowany mod, w milisekundach.", "Only relevant when 'force_voice_chat' is set to 'true'"
"EN: Only relevant when 'force_voice_chat' is set to 'true'",
"PL: Używane tylko wtedy, gdy 'force_voice_chat' ma wartość 'true'."
); );
broadcastRange = builder broadcastRange = builder
.doubleEntry("broadcast_range", -1D, -1D, Double.MAX_VALUE, .doubleEntry("broadcast_range", -1D, -1D, Double.MAX_VALUE,
"EN: The range in which the voice chat should broadcast audio", "The range in which the voice chat should broadcast audio",
"PL: Zasięg, w którym voice chat rozsyła dźwięk.", "A value less than 0 means 'max_voice_distance'"
"EN: A value less than 0 means 'max_voice_distance'",
"PL: Wartość mniejsza od 0 oznacza użycie 'max_voice_distance'."
); );
allowPings = builder allowPings = builder
.booleanEntry("allow_pings", true, .booleanEntry("allow_pings", true,
"EN: If the voice chat server should reply to external pings", "If the voice chat server should reply to external pings"
"PL: Czy serwer voice chatu ma odpowiadać na zewnętrzne pingi."
); );
threadedServerSupport = builder threadedServerSupport = builder
.booleanEntry("threaded_server_support", true, .booleanEntry("threaded_server_support", true,
"EN: If the voice chat should support servers that run multiple threads, like Folia", "If the voice chat should support servers that run multiple threads, like Folia",
"PL: Czy voice chat ma obsługiwać serwery wielowątkowe, takie jak Folia.", "Disabling this may slightly improve performance, but can cause issues on servers that don't run everything on a single thread"
"EN: Disabling this may slightly improve performance, but can cause issues on servers that don't run everything on a single thread",
"PL: Wyłączenie może nieznacznie poprawić wydajność, ale powodować problemy na serwerach, które nie wykonują wszystkiego na jednym wątku."
); );
} }