diff --git a/.gitea/workflows/build-plugin.yml b/.gitea/workflows/build-plugin.yml index d8cfbd5..36254f2 100644 --- a/.gitea/workflows/build-plugin.yml +++ b/.gitea/workflows/build-plugin.yml @@ -33,7 +33,7 @@ jobs: run: | latest="$(git tag --list 'v[0-9]*' --sort=-version:refname | head -n 1)" if [[ -z "$latest" ]]; then - version="1.0.0" + version="1.0.1" else current="${latest#v}" IFS='.' read -r major minor patch <<< "$current" diff --git a/.gitignore b/.gitignore index 394a356..0a20f5c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ build/ *.class *.log +/LOCAL_AI_NOTES.md diff --git a/AsminVoiceChat-1.0.0.jar b/AsminVoiceChat-1.0.1.jar similarity index 95% rename from AsminVoiceChat-1.0.0.jar rename to AsminVoiceChat-1.0.1.jar index a3971f9..796e864 100644 Binary files a/AsminVoiceChat-1.0.0.jar and b/AsminVoiceChat-1.0.1.jar differ diff --git a/build.gradle b/build.gradle index c4162a4..0d50487 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { } group = 'de.maxhenkel.voicechat' -version = findProperty('buildVersion') ?: '1.0.0' +version = findProperty('buildVersion') ?: '1.0.1' java { sourceCompatibility = JavaVersion.VERSION_1_8 diff --git a/plugin.yml b/plugin.yml index 5803eba..4b4ce8c 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,5 +1,5 @@ name: AsminVoicechat -version: 1.0.0 +version: 1.0.1 main: de.maxhenkel.voicechat.Voicechat api-version: '1.13' prefix: AsminVoicechat diff --git a/source/bukkit/src/main/java/de/maxhenkel/voicechat/config/ServerConfig.java b/source/bukkit/src/main/java/de/maxhenkel/voicechat/config/ServerConfig.java index a0c97b7..055f6bb 100644 --- a/source/bukkit/src/main/java/de/maxhenkel/voicechat/config/ServerConfig.java +++ b/source/bukkit/src/main/java/de/maxhenkel/voicechat/config/ServerConfig.java @@ -2,7 +2,6 @@ package de.maxhenkel.voicechat.config; import de.maxhenkel.configbuilder.ConfigBuilder; import de.maxhenkel.configbuilder.entry.ConfigEntry; -import de.maxhenkel.voicechat.BuildConstants; import de.maxhenkel.voicechat.Voicechat; import de.maxhenkel.voicechat.voice.common.AudioUtils; @@ -28,97 +27,133 @@ public class ServerConfig { public ConfigEntry threadedServerSupport; public ServerConfig(ConfigBuilder builder) { - builder.header(String.format("%s server config v%s", BuildConstants.PLUGIN_NAME, Voicechat.INSTANCE.getDescription().getVersion())); + builder.header(String.format("AsminVoiceChat (Simple Voice Chat) server config v%s", Voicechat.INSTANCE.getDescription().getVersion())); voiceChatPort = builder .integerEntry("port", 24454, -1, 65535, - "The port number to use for the voice chat communication.", - "Audio packets are always transmitted via the UDP protocol on the port number", - "specified here, independently of other networking used for the game server.", - "Set this to '-1' to use the same port number that is used by the Minecraft server.", - "However, it is strongly recommended NOT to use the same port number because UDP on", - "it is also used by default for the server query. Doing so may crash the server!" + "EN: The port number to use for the voice chat communication.", + "PL: Port używany do komunikacji czatu głosowego.", + "EN: Audio packets are always transmitted via the UDP protocol on the port number", + "PL: Pakiety audio są zawsze przesyłane przez UDP na porcie wskazanym tutaj,", + "EN: specified here, independently of other networking used for the game server.", + "PL: niezależnie od pozostałej komunikacji sieciowej serwera gry.", + "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 .stringEntry("bind_address", "", - "The server IP address to bind the voice chat to", - "Leave blank to use the 'server-ip' property from the 'server.properties' config file", - "To bind to the wildcard IP address, use '*'" + "EN: The server IP address to bind the voice chat to", + "PL: Adres IP serwera, na którym ma nasłuchiwać czat głosowy.", + "EN: Leave blank to use the 'server-ip' property from the 'server.properties' config file", + "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 .doubleEntry("max_voice_distance", 48D, 1D, 1_000_000D, - "The distance to which the voice can be heard" + "EN: The distance to which the voice can be heard", + "PL: Maksymalna odległość, z której słychać głos." ); whisperDistance = builder .doubleEntry("whisper_distance", 24D, 1D, 1_000_000D, - "The distance to which the voice can be heard when whispering" + "EN: The distance to which the voice can be heard when whispering", + "PL: Maksymalna odległość, z której słychać szept." ); voiceChatCodec = builder .enumEntry("codec", Codec.VOIP, - "The Opus codec", - "Valid values are 'VOIP', 'AUDIO', and 'RESTRICTED_LOWDELAY'" + "EN: The Opus codec", + "PL: Używany kodek Opus.", + "EN: Valid values are 'VOIP', 'AUDIO', and 'RESTRICTED_LOWDELAY'", + "PL: Dozwolone wartości: 'VOIP', 'AUDIO' oraz 'RESTRICTED_LOWDELAY'." ); voiceChatMtuSize = builder .integerEntry("mtu_size", AudioUtils.MAX_OPUS_PAYLOAD_SIZE, 512, 2048, - "The maximum size that audio packets are allowed to have (in bytes)", - "Setting this to lower values might cause issues" + "EN: The maximum size that audio packets are allowed to have (in bytes)", + "PL: Maksymalny rozmiar pakietu audio w bajtach.", + "EN: Setting this to lower values might cause issues", + "PL: Ustawienie mniejszej wartości może powodować problemy." ); tcpRateLimit = builder .integerEntry("tcp_rate_limit", 16, -1, 1024, - "The maximum number of packets a player can send per second", - "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", - "This affects actions like opening/joining/leaving voice chat groups or general state changes like disabling/enabling the voice chat" + "EN: 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.", + "EN: Set this to -1 to disable the rate limit - This must be greater than 0 in all other cases", + "PL: Ustaw '-1', aby wyłączyć limit. W pozostałych przypadkach wartość musi być większa od 0.", + "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 .integerEntry("keep_alive", 1000, 1000, Integer.MAX_VALUE, - "The frequency at which keep-alive packets are sent (in milliseconds)", - "Setting this to a higher value may result in timeouts" + "EN: The frequency at which keep-alive packets are sent (in milliseconds)", + "PL: Częstotliwość wysyłania pakietów keep-alive w milisekundach.", + "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 .booleanEntry("enable_groups", true, - "If group chats are allowed" + "EN: If group chats are allowed", + "PL: Czy rozmowy grupowe są dozwolone." ); voiceHost = builder .stringEntry("voice_host", "", - "The hostname that clients should use to connect to the voice chat", - "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" + "EN: 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.", + "EN: This may also include a port, e.g. 'example.com:24454'", + "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 .booleanEntry("allow_recording", true, - "If players are allowed to record the voice chat audio" + "EN: If players are allowed to record the voice chat audio", + "PL: Czy gracze mogą nagrywać dźwięk z voice chatu." ); spectatorInteraction = builder .booleanEntry("spectator_interaction", false, - "If spectators are allowed to talk to other players" + "EN: If spectators are allowed to talk to other players", + "PL: Czy widzowie mogą rozmawiać z innymi graczami." ); spectatorPlayerPossession = builder .booleanEntry("spectator_player_possession", false, - "If spectators can talk to players they are spectating" + "EN: If spectators can talk to players they are spectating", + "PL: Czy widz może rozmawiać z graczem, którego obserwuje." ); forceVoiceChat = builder .booleanEntry("force_voice_chat", false, - "If players without the voice chat mod should be kicked from the server" + "EN: 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 .integerEntry("login_timeout", 10_000, 100, Integer.MAX_VALUE, - "The amount of time the server should wait to check if a player has the mod installed (in milliseconds)", - "Only relevant when 'force_voice_chat' is set to 'true'" + "EN: 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.", + "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 .doubleEntry("broadcast_range", -1D, -1D, Double.MAX_VALUE, - "The range in which the voice chat should broadcast audio", - "A value less than 0 means 'max_voice_distance'" + "EN: The range in which the voice chat should broadcast audio", + "PL: Zasięg, w którym voice chat rozsyła dźwięk.", + "EN: A value less than 0 means 'max_voice_distance'", + "PL: Wartość mniejsza od 0 oznacza użycie 'max_voice_distance'." ); allowPings = builder .booleanEntry("allow_pings", true, - "If the voice chat server should reply to external pings" + "EN: If the voice chat server should reply to external pings", + "PL: Czy serwer voice chatu ma odpowiadać na zewnętrzne pingi." ); threadedServerSupport = builder .booleanEntry("threaded_server_support", true, - "If the voice chat should support servers that run multiple threads, like Folia", - "Disabling this may slightly improve performance, but can cause issues on servers that don't run everything on a single thread" + "EN: 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.", + "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." ); } @@ -126,4 +161,4 @@ public class ServerConfig { VOIP, AUDIO, RESTRICTED_LOWDELAY; } -} \ No newline at end of file +}