first commit
Build AsminVoicechat / prepare-release (push) Successful in 14s
Build AsminVoicechat / build-and-test (17) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (18) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (19) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (20) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (21) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (22) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (23) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (24) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (25) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (26) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (27-ea) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (16) (push) Canceled after 38s
Build AsminVoicechat / prepare-release (push) Successful in 14s
Build AsminVoicechat / build-and-test (17) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (18) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (19) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (20) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (21) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (22) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (23) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (24) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (25) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (26) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (27-ea) (push) Canceled after 0s
Build AsminVoicechat / build-and-test (16) (push) Canceled after 38s
This commit is contained in:
commit
bbccd4a815
454 files changed
+45050
No files matched your search
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.config;
|
||||
|
||||
import de.maxhenkel.voicechat.Voicechat;
|
||||
import de.maxhenkel.voicechat.configbuilder.ConfigBuilder;
|
||||
import de.maxhenkel.voicechat.configbuilder.entry.ConfigEntry;
|
||||
|
||||
public class ServerConfig {
|
||||
public final ConfigEntry<Integer> voiceChatPort;
|
||||
public final ConfigEntry<String> voiceChatBindAddress;
|
||||
public final ConfigEntry<Double> voiceChatDistance;
|
||||
public ConfigEntry<Double> whisperDistance;
|
||||
public final ConfigEntry<Codec> voiceChatCodec;
|
||||
public final ConfigEntry<Integer> voiceChatMtuSize;
|
||||
public final ConfigEntry<Integer> tcpRateLimit;
|
||||
public final ConfigEntry<Integer> keepAlive;
|
||||
public final ConfigEntry<Boolean> groupsEnabled;
|
||||
public final ConfigEntry<String> voiceHost;
|
||||
public final ConfigEntry<Boolean> allowRecording;
|
||||
public final ConfigEntry<Boolean> spectatorInteraction;
|
||||
public ConfigEntry<Boolean> spectatorPlayerPossession;
|
||||
public ConfigEntry<Boolean> forceVoiceChat;
|
||||
public ConfigEntry<Integer> loginTimeout;
|
||||
public ConfigEntry<Double> broadcastRange;
|
||||
public ConfigEntry<Boolean> allowPings;
|
||||
public ConfigEntry<Boolean> threadedServerSupport;
|
||||
|
||||
public ServerConfig(ConfigBuilder builder) {
|
||||
builder.header(String.format("%s server config v%s", "Simple Voice Chat", Voicechat.INSTANCE.getDescription().getVersion()));
|
||||
this.voiceChatPort = builder.integerEntry("port", (Integer)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!");
|
||||
this.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 '*'");
|
||||
this.voiceChatDistance = builder.doubleEntry("max_voice_distance", (Double)48.0, 1.0, 1000000.0, "The distance to which the voice can be heard");
|
||||
this.whisperDistance = builder.doubleEntry("whisper_distance", (Double)24.0, 1.0, 1000000.0, "The distance to which the voice can be heard when whispering");
|
||||
this.voiceChatCodec = builder.enumEntry("codec", Codec.VOIP, "The Opus codec", "Valid values are 'VOIP', 'AUDIO', and 'RESTRICTED_LOWDELAY'");
|
||||
this.voiceChatMtuSize = builder.integerEntry("mtu_size", (Integer)1275, 512, 2048, "The maximum size that audio packets are allowed to have (in bytes)", "Setting this to lower values might cause issues");
|
||||
this.tcpRateLimit = builder.integerEntry("tcp_rate_limit", (Integer)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");
|
||||
this.keepAlive = builder.integerEntry("keep_alive", (Integer)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");
|
||||
this.groupsEnabled = builder.booleanEntry("enable_groups", true, "If group chats are allowed");
|
||||
this.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");
|
||||
this.allowRecording = builder.booleanEntry("allow_recording", true, "If players are allowed to record the voice chat audio");
|
||||
this.spectatorInteraction = builder.booleanEntry("spectator_interaction", false, "If spectators are allowed to talk to other players");
|
||||
this.spectatorPlayerPossession = builder.booleanEntry("spectator_player_possession", false, "If spectators can talk to players they are spectating");
|
||||
this.forceVoiceChat = builder.booleanEntry("force_voice_chat", false, "If players without the voice chat mod should be kicked from the server");
|
||||
this.loginTimeout = builder.integerEntry("login_timeout", (Integer)10000, 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'");
|
||||
this.broadcastRange = builder.doubleEntry("broadcast_range", (Double)-1.0, -1.0, (Double)Double.MAX_VALUE, "The range in which the voice chat should broadcast audio", "A value less than 0 means 'max_voice_distance'");
|
||||
this.allowPings = builder.booleanEntry("allow_pings", true, "If the voice chat server should reply to external pings");
|
||||
this.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");
|
||||
}
|
||||
|
||||
public static enum Codec {
|
||||
VOIP,
|
||||
AUDIO,
|
||||
RESTRICTED_LOWDELAY;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package de.maxhenkel.voicechat.config;
|
||||
|
||||
import de.maxhenkel.voicechat.configbuilder.ConfigBuilder;
|
||||
import de.maxhenkel.voicechat.configbuilder.entry.ConfigEntry;
|
||||
|
||||
public class Translations {
|
||||
public final ConfigEntry<String> forceVoicechatKickMessage;
|
||||
public final ConfigEntry<String> rateLimitKickMessage;
|
||||
public final ConfigEntry<String> voicechatNotCompatibleMessage;
|
||||
public final ConfigEntry<String> voicechatNeededForCommandMessage;
|
||||
public final ConfigEntry<String> playerCommandMessage;
|
||||
public final ConfigEntry<String> placeholderVoicechatInstalled;
|
||||
public final ConfigEntry<String> placeholderVoicechatNotInstalled;
|
||||
public final ConfigEntry<String> placeholderVoicechatDisabled;
|
||||
|
||||
public Translations(ConfigBuilder builder) {
|
||||
builder.header("Simple Voice Chat translations", "This file contains all server-side translations for the Simple Voice Chat plugin");
|
||||
this.forceVoicechatKickMessage = builder.stringEntry("force_voicechat_kick_message", "You need %s %s to play on this server", "The message a player gets when kicked for not having voice chat installed and the server has force_voicechat enabled", "The first parameter is the mod/plugin name and the second parameter is the mod/plugin version");
|
||||
this.rateLimitKickMessage = builder.stringEntry("rate_limit_kick_message", "Kicked for exceeding packet rate limit", "The message a player gets when kicked for sending too many voice chat packets");
|
||||
this.voicechatNotCompatibleMessage = builder.stringEntry("voicechat_not_compatible_message", "Your voice chat client version is not compatible with the server-side version.\\nPlease install version %s of %s.", "The message a player gets when joining a server with an incompatible voice chat version", "The first parameter is the mod/plugin version and the second parameter is the mod/plugin name");
|
||||
this.voicechatNeededForCommandMessage = builder.stringEntry("voicechat_needed_for_command_message", "You need to have %s installed on your client to use this command", "The message a player gets when trying to execute a command that requires the voice chat mod installed on the client side.", "The first parameter is the mod/plugin name");
|
||||
this.playerCommandMessage = builder.stringEntry("player_command_message", "This command can only be executed as a player", "The message a player gets when trying to execute a command that can only be executed as a player");
|
||||
this.placeholderVoicechatInstalled = builder.stringEntry("placeholder_api_voicechat_installed", "", "The Placeholder API string for '%voicechat_installed%'");
|
||||
this.placeholderVoicechatNotInstalled = builder.stringEntry("placeholder_api_voicechat_not_installed", "", "The Placeholder API string for '%voicechat_not_installed%'");
|
||||
this.placeholderVoicechatDisabled = builder.stringEntry("placeholder_api_voicechat_disabled", "", "The Placeholder API string for '%voicechat_disabled%'");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user