mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-11-16 23:35:22 +01:00
Organize Patches
This commit is contained in:
parent
58e98646fd
commit
e9951787e0
@ -1,4 +1,4 @@
|
||||
From 20e7630ff3f3f16d5f1b45c4fbe81037795088d8 Mon Sep 17 00:00:00 2001
|
||||
From e491e4797924fec05301ae3e1ef8b734c834a7f4 Mon Sep 17 00:00:00 2001
|
||||
From: Juan Cruz Linsalata <LinsaFTW@users.noreply.github.com>
|
||||
Date: Mon, 12 Oct 2020 15:40:53 -0300
|
||||
Subject: [PATCH] FlameCord General Patch
|
||||
@ -133,6 +133,155 @@ index 000000000..c8148e902
|
||||
+ }
|
||||
+ }
|
||||
+}
|
||||
diff --git a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
||||
new file mode 100644
|
||||
index 000000000..00b074aaf
|
||||
--- /dev/null
|
||||
+++ b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
||||
@@ -0,0 +1,142 @@
|
||||
+package dev._2lstudios.flamecord.configuration;
|
||||
+
|
||||
+import java.io.File;
|
||||
+import java.io.IOException;
|
||||
+import java.text.MessageFormat;
|
||||
+import java.util.HashMap;
|
||||
+import java.util.Map;
|
||||
+import java.util.logging.Logger;
|
||||
+
|
||||
+import net.md_5.bungee.api.ChatColor;
|
||||
+import net.md_5.bungee.config.Configuration;
|
||||
+import net.md_5.bungee.config.ConfigurationProvider;
|
||||
+
|
||||
+public class MessagesConfiguration extends FlameConfig {
|
||||
+ private final Logger logger;
|
||||
+ private final Map<String, String> messages = new HashMap<>();
|
||||
+
|
||||
+ public MessagesConfiguration(final Logger logger, final ConfigurationProvider configurationProvider) {
|
||||
+ this.logger = logger;
|
||||
+
|
||||
+ try {
|
||||
+ final String fileName = "./messages.yml";
|
||||
+ final File configurationFile = new File(fileName);
|
||||
+ final Configuration configuration;
|
||||
+ final boolean configurationExists = configurationFile.exists();
|
||||
+
|
||||
+ if (!configurationExists) {
|
||||
+ configuration = new Configuration();
|
||||
+ } else {
|
||||
+ configuration = configurationProvider.load(configurationFile);
|
||||
+ }
|
||||
+
|
||||
+ // BungeeCord
|
||||
+ setIfUnexistant("alert", "&8[&4Alert&8]&r ", configuration);
|
||||
+ setIfUnexistant("already_connected", "&cYou are already connected to this server!", configuration);
|
||||
+ setIfUnexistant("already_connected_proxy", "&cYou are already connected to this proxy!", configuration);
|
||||
+ setIfUnexistant("already_connecting", "&cAlready connecting to this server!", configuration);
|
||||
+ setIfUnexistant("command_list_format", "&aServers:&r", configuration);
|
||||
+ setIfUnexistant("command_list", "&a[{0}] &e({1}): &r{2}", configuration);
|
||||
+ setIfUnexistant("connect_kick", "&cKicked whilst connecting to {0}: {1}", configuration);
|
||||
+ setIfUnexistant("current_server", "&6You are currently connected to {0}.", configuration);
|
||||
+ setIfUnexistant("fallback_kick",
|
||||
+ "&cCould not connect to a default or fallback server, please try again later: {0}", configuration);
|
||||
+ setIfUnexistant("fallback_lobby",
|
||||
+ "&cCould not connect to target server, you have been moved to a fallback server.", configuration);
|
||||
+ setIfUnexistant("lost_connection", "[Proxy] Lost connection to server.", configuration);
|
||||
+ setIfUnexistant("mojang_fail", "Error occurred while contacting login servers, are they down?",
|
||||
+ configuration);
|
||||
+ setIfUnexistant("no_permission", "&cYou do not have permission to execute this command!", configuration);
|
||||
+ setIfUnexistant("no_server", "&cThe specified server does not exist.", configuration);
|
||||
+ setIfUnexistant("no_server_permission", "&cYou don't have permission to access this server.",
|
||||
+ configuration);
|
||||
+ setIfUnexistant("outdated_client", "Outdated client! Please use {0}", configuration);
|
||||
+ setIfUnexistant("outdated_server", "Outdated server! I'm still on {0}", configuration);
|
||||
+ setIfUnexistant("proxy_full", "Server is full!", configuration);
|
||||
+ setIfUnexistant("restart", "[Proxy] Proxy restarting.", configuration);
|
||||
+ setIfUnexistant("server_list", "&6You may connect to the following servers at this time: ", configuration);
|
||||
+ setIfUnexistant("server_went_down",
|
||||
+ "&cThe server you were previously on went down, you have been connected to a fallback server",
|
||||
+ configuration);
|
||||
+ setIfUnexistant("total_players", "Total players online: {0}", configuration);
|
||||
+ setIfUnexistant("name_invalid", "Username contains invalid characters.", configuration);
|
||||
+ setIfUnexistant("ping_cannot_connect", "&c[Bungee] Can't connect to server.", configuration);
|
||||
+ setIfUnexistant("offline_mode_player", "Not authenticated with Minecraft.net", configuration);
|
||||
+ setIfUnexistant("secure_profile_required", "A secure profile is required to join this server.", configuration);
|
||||
+ setIfUnexistant("secure_profile_expired", "Secure profile expired.", configuration);
|
||||
+ setIfUnexistant("secure_profile_invalid", "Secure profile invalid.", configuration);
|
||||
+ setIfUnexistant("message_needed", "&cYou must supply a message.", configuration);
|
||||
+ setIfUnexistant("error_occurred_player",
|
||||
+ "&cAn error occurred while parsing your message. (Hover for details)", configuration);
|
||||
+ setIfUnexistant("error_occurred_console", "&cAn error occurred while parsing your message: {0}",
|
||||
+ configuration);
|
||||
+ setIfUnexistant("server_command_hover_players", "{0} players", configuration);
|
||||
+ setIfUnexistant("click_to_connect", "Click to connect to the server", configuration);
|
||||
+ setIfUnexistant("username_needed", "&cPlease follow this command by a user name.", configuration);
|
||||
+ setIfUnexistant("user_not_online", "&cThat user is not online.", configuration);
|
||||
+ setIfUnexistant("user_online_at", "&a{0} &ris online at {1}", configuration);
|
||||
+ setIfUnexistant("send_cmd_usage",
|
||||
+ "&cNot enough arguments, usage: /send <server|player|all|current> <target>", configuration);
|
||||
+ setIfUnexistant("player_only", "&cOnly in game players can use this command", configuration);
|
||||
+ setIfUnexistant("you_got_summoned", "&6Summoned to {0} by {1}", configuration);
|
||||
+ setIfUnexistant("command_perms_groups", "&6You have the following groups: {0}", configuration);
|
||||
+ setIfUnexistant("command_perms_permission", "&9- {0}", configuration);
|
||||
+ setIfUnexistant("command_ip", "&9IP of {0} is {1}", configuration);
|
||||
+ setIfUnexistant("illegal_chat_characters", "&cIllegal characters in chat ({0})", configuration);
|
||||
+
|
||||
+ // FlameCord start - Antibot System
|
||||
+ setIfUnexistant("antibot_accounts", "&c&lFlameCord\n\n&cYou have too many accounts! ({0})\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
+ setIfUnexistant("antibot_fastchat", "&c&lFlameCord\n\n&cYou are chatting too fast!\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
+ setIfUnexistant("antibot_firewall", "&c&lFlameCord\n\n&cYou are blocked from this server!\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
+ setIfUnexistant("antibot_nickname", "&c&lFlameCord\n\n&cYour nickname was detected as bot! ({0})\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
+ setIfUnexistant("antibot_password", "&c&lFlameCord\n\n&cYour password is used by other players! ({0})\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
+ setIfUnexistant("antibot_ratelimit", "&c&lFlameCord\n\n&cYou are connecting too fast! ({0})\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
+ setIfUnexistant("antibot_reconnect", "&c&lFlameCord\n\n&cReconnect {0} more times to enter!\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
+ setIfUnexistant("antibot_country", "&c&lFlameCord\n\n&cYour country {0} is blacklisted!\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
+ setIfUnexistant("antibot_stats", "&c&lFlameCord Antibot Stats\n &7■ Total Pings: &a{0}\n &7■ Total Connections: &b{1}\n\n &7■ Current Pings: &a{2}\n &7■ Current Connections: &b{3}", configuration);
|
||||
+ // FlameCord end - Antibot System
|
||||
+
|
||||
+ // FlameCord - Bungee Plugins Command
|
||||
+ setIfUnexistant("flamecord_bplugins_nopermission", "&cYou don't have permission to do this!", configuration);
|
||||
+ setIfUnexistant("flamecord_bplugins_separator", ", ", configuration);
|
||||
+ setIfUnexistant("flamecord_bplugins_header", "&aPlugins ({0}): ", configuration);
|
||||
+
|
||||
+ // FlameCord - Bungee Plugins Command
|
||||
+ setIfUnexistant("flamecord_bip_nopermission", "&cYou don't have permission to do this!", configuration);
|
||||
+ setIfUnexistant("flamecord_bip_offline", "&cThe player is not online!", configuration);
|
||||
+ setIfUnexistant("flamecord_bip_usage", "&c/bip <player>", configuration);
|
||||
+ setIfUnexistant("flamecord_bip", "&aInformation about {0}&a:\n&aUUID: &b{1}\n&aIP: &b{2}\n&aPing: &b{3}ms\n&aLocale: &b{4}\n&aView Distance: &b{5}\n&aCurrent Server: &b{6}", configuration);
|
||||
+
|
||||
+ // FlameCord
|
||||
+ setIfUnexistant("flamecord_reload", "&aAll files had been successfully reloaded!", configuration);
|
||||
+ setIfUnexistant("flamecord_help",
|
||||
+ "&aFlameCord&b {0}&a by&b LinsaFTW\n&e /flamecord reload&7 >&b Reloads FlameCord files!\n&e /flamecord firewall <add/remove> <ip>&7 >&b Firewall certain ips!\n&e /bplugins&7 >&b Show the plugin list!\n&e /bip <player>&7 >&b Show the ip and info of a player!\n&e /flamecord help&7 >&b Shows this message!",
|
||||
+ configuration);
|
||||
+ setIfUnexistant("flamecord_nopermission", "&cYou don't have permission to do this!", configuration);
|
||||
+ setIfUnexistant("flamecord_firewall_help", "&c/flamecord firewall <add/remove> <ip>", configuration);
|
||||
+ setIfUnexistant("flamecord_firewall_add", "&cThe ip {0} was added to the firewall!", configuration);
|
||||
+ setIfUnexistant("flamecord_firewall_remove", "&cThe ip {0} was removed from the firewall!", configuration);
|
||||
+
|
||||
+ configurationProvider.save(configuration, configurationFile);
|
||||
+
|
||||
+ for (final String key : configuration.getKeys()) {
|
||||
+ final Object value = configuration.get(key);
|
||||
+
|
||||
+ if (value instanceof String) {
|
||||
+ this.messages.put(key, ChatColor.translateAlternateColorCodes('&', (String) value));
|
||||
+ }
|
||||
+ }
|
||||
+ } catch (final IOException e) {
|
||||
+ e.printStackTrace();
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ public String getTranslation(final String name, final Object... args) {
|
||||
+ if (!messages.containsKey(name)) {
|
||||
+ logger.warning("[FlameCord] Tried to get translation '" + name
|
||||
+ + "' from messages.yml file but wasn't found. Please try resetting this file or report to a developer.");
|
||||
+ }
|
||||
+
|
||||
+ return MessageFormat.format(messages.getOrDefault(name, "<translation '" + name + "' missing>"), args);
|
||||
+ }
|
||||
+}
|
||||
\ No newline at end of file
|
||||
diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/MinecraftDecoder.java b/protocol/src/main/java/net/md_5/bungee/protocol/MinecraftDecoder.java
|
||||
index 640f0ea26..70a1192e7 100644
|
||||
--- a/protocol/src/main/java/net/md_5/bungee/protocol/MinecraftDecoder.java
|
||||
@ -209,7 +358,7 @@ index 000000000..91d60bfb3
|
||||
+ }
|
||||
+}
|
||||
diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
||||
index e11e30402..8861da39d 100644
|
||||
index 031b21084..1dd53660a 100644
|
||||
--- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
||||
+++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
||||
@@ -9,6 +9,8 @@ import com.google.common.collect.Sets;
|
||||
|
@ -1,4 +1,4 @@
|
||||
From 6eae2c1a46011d8e4aabaf919279a9d941c403f1 Mon Sep 17 00:00:00 2001
|
||||
From 4d10d73b8ebc26a61300da52764739815a151492 Mon Sep 17 00:00:00 2001
|
||||
From: linsaftw <25271111+linsaftw@users.noreply.github.com>
|
||||
Date: Sat, 1 May 2021 13:40:39 -0300
|
||||
Subject: [PATCH] FlameCord message configuration
|
||||
@ -33,127 +33,56 @@ index ac37eaa3e..c78ab3a7c 100644
|
||||
|
||||
private FlameCord(final Logger logger, final Collection<String> whitelistedAddresses) {
|
||||
diff --git a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
||||
new file mode 100644
|
||||
index 000000000..70d5d61fe
|
||||
--- /dev/null
|
||||
index 00b074aaf..207cd1b1d 100644
|
||||
--- a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
||||
+++ b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
||||
@@ -0,0 +1,115 @@
|
||||
+package dev._2lstudios.flamecord.configuration;
|
||||
+
|
||||
+import java.io.File;
|
||||
+import java.io.IOException;
|
||||
+import java.text.MessageFormat;
|
||||
+import java.util.HashMap;
|
||||
+import java.util.Map;
|
||||
+import java.util.logging.Logger;
|
||||
+
|
||||
+import net.md_5.bungee.api.ChatColor;
|
||||
+import net.md_5.bungee.config.Configuration;
|
||||
+import net.md_5.bungee.config.ConfigurationProvider;
|
||||
+
|
||||
+public class MessagesConfiguration extends FlameConfig {
|
||||
+ private final Logger logger;
|
||||
+ private final Map<String, String> messages = new HashMap<>();
|
||||
+
|
||||
+ public MessagesConfiguration(final Logger logger, final ConfigurationProvider configurationProvider) {
|
||||
+ this.logger = logger;
|
||||
+
|
||||
+ try {
|
||||
+ final String fileName = "./messages.yml";
|
||||
+ final File configurationFile = new File(fileName);
|
||||
+ final Configuration configuration;
|
||||
+ final boolean configurationExists = configurationFile.exists();
|
||||
+
|
||||
+ if (!configurationExists) {
|
||||
+ configuration = new Configuration();
|
||||
+ } else {
|
||||
+ configuration = configurationProvider.load(configurationFile);
|
||||
+ }
|
||||
+
|
||||
+ // BungeeCord
|
||||
+ setIfUnexistant("alert", "&8[&4Alert&8]&r ", configuration);
|
||||
+ setIfUnexistant("already_connected", "&cYou are already connected to this server!", configuration);
|
||||
+ setIfUnexistant("already_connected_proxy", "&cYou are already connected to this proxy!", configuration);
|
||||
+ setIfUnexistant("already_connecting", "&cAlready connecting to this server!", configuration);
|
||||
+ setIfUnexistant("command_list", "&a[{0}] &e({1}): &r{2}", configuration);
|
||||
+ setIfUnexistant("connect_kick", "&cKicked whilst connecting to {0}: {1}", configuration);
|
||||
+ setIfUnexistant("current_server", "&6You are currently connected to {0}.", configuration);
|
||||
+ setIfUnexistant("fallback_kick",
|
||||
+ "&cCould not connect to a default or fallback server, please try again later: {0}", configuration);
|
||||
+ setIfUnexistant("fallback_lobby",
|
||||
+ "&cCould not connect to target server, you have been moved to a fallback server.", configuration);
|
||||
+ setIfUnexistant("lost_connection", "[Proxy] Lost connection to server.", configuration);
|
||||
+ setIfUnexistant("mojang_fail", "Error occurred while contacting login servers, are they down?",
|
||||
+ configuration);
|
||||
+ setIfUnexistant("no_permission", "&cYou do not have permission to execute this command!", configuration);
|
||||
+ setIfUnexistant("no_server", "&cThe specified server does not exist.", configuration);
|
||||
+ setIfUnexistant("no_server_permission", "&cYou don't have permission to access this server.",
|
||||
+ configuration);
|
||||
+ setIfUnexistant("outdated_client", "Outdated client! Please use {0}", configuration);
|
||||
+ setIfUnexistant("outdated_server", "Outdated server! I'm still on {0}", configuration);
|
||||
+ setIfUnexistant("proxy_full", "Server is full!", configuration);
|
||||
+ setIfUnexistant("restart", "[Proxy] Proxy restarting.", configuration);
|
||||
+ setIfUnexistant("server_list", "&6You may connect to the following servers at this time: ", configuration);
|
||||
+ setIfUnexistant("server_went_down",
|
||||
+ "&cThe server you were previously on went down, you have been connected to a fallback server",
|
||||
+ configuration);
|
||||
+ setIfUnexistant("total_players", "Total players online: {0}", configuration);
|
||||
+ setIfUnexistant("name_invalid", "Username contains invalid characters.", configuration);
|
||||
+ setIfUnexistant("ping_cannot_connect", "&c[Bungee] Can't connect to server.", configuration);
|
||||
+ setIfUnexistant("offline_mode_player", "Not authenticated with Minecraft.net", configuration);
|
||||
+ setIfUnexistant("secure_profile_required", "A secure profile is required to join this server.", configuration);
|
||||
+ setIfUnexistant("secure_profile_expired", "Secure profile expired.", configuration);
|
||||
+ setIfUnexistant("secure_profile_invalid", "Secure profile invalid.", configuration);
|
||||
+ setIfUnexistant("message_needed", "&cYou must supply a message.", configuration);
|
||||
+ setIfUnexistant("error_occurred_player",
|
||||
+ "&cAn error occurred while parsing your message. (Hover for details)", configuration);
|
||||
+ setIfUnexistant("error_occurred_console", "&cAn error occurred while parsing your message: {0}",
|
||||
+ configuration);
|
||||
+ setIfUnexistant("server_command_hover_players", "{0} players", configuration);
|
||||
+ setIfUnexistant("click_to_connect", "Click to connect to the server", configuration);
|
||||
+ setIfUnexistant("username_needed", "&cPlease follow this command by a user name.", configuration);
|
||||
+ setIfUnexistant("user_not_online", "&cThat user is not online.", configuration);
|
||||
+ setIfUnexistant("user_online_at", "&a{0} &ris online at {1}", configuration);
|
||||
+ setIfUnexistant("send_cmd_usage",
|
||||
+ "&cNot enough arguments, usage: /send <server|player|all|current> <target>", configuration);
|
||||
+ setIfUnexistant("player_only", "&cOnly in game players can use this command", configuration);
|
||||
+ setIfUnexistant("you_got_summoned", "&6Summoned to {0} by {1}", configuration);
|
||||
+ setIfUnexistant("command_perms_groups", "&6You have the following groups: {0}", configuration);
|
||||
+ setIfUnexistant("command_perms_permission", "&9- {0}", configuration);
|
||||
+ setIfUnexistant("command_ip", "&9IP of {0} is {1}", configuration);
|
||||
+ setIfUnexistant("illegal_chat_characters", "&cIllegal characters in chat ({0})", configuration);
|
||||
+
|
||||
+ // FlameCord
|
||||
+ setIfUnexistant("flamecord_reload", "&aAll files had been successfully reloaded!", configuration);
|
||||
+ setIfUnexistant("flamecord_help",
|
||||
+ "&aFlameCord&b {0}&a by&b LinsaFTW&a &&b Sammwy&r\n&e /flamecord reload&7 >&b Reloads FlameCord files!\n&e /flamecord help&7 >&b Shows this message!",
|
||||
+ configuration);
|
||||
+ setIfUnexistant("flamecord_nopermission", "&cYou don't have permission to do this!", configuration);
|
||||
+
|
||||
+ configurationProvider.save(configuration, configurationFile);
|
||||
+
|
||||
+ for (final String key : configuration.getKeys()) {
|
||||
+ final Object value = configuration.get(key);
|
||||
+
|
||||
+ if (value instanceof String) {
|
||||
+ this.messages.put(key, ChatColor.translateAlternateColorCodes('&', (String) value));
|
||||
+ }
|
||||
+ }
|
||||
+ } catch (final IOException e) {
|
||||
+ e.printStackTrace();
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ public String getTranslation(final String name, final Object... args) {
|
||||
+ if (!messages.containsKey(name)) {
|
||||
+ logger.warning("[FlameCord] Tried to get translation '" + name
|
||||
+ + "' from messages.yml file but wasn't found. Please try resetting this file or report to a developer.");
|
||||
+ }
|
||||
+
|
||||
+ return MessageFormat.format(messages.getOrDefault(name, "<translation '" + name + "' missing>"), args);
|
||||
+ }
|
||||
+}
|
||||
\ No newline at end of file
|
||||
@@ -35,7 +35,6 @@ public class MessagesConfiguration extends FlameConfig {
|
||||
setIfUnexistant("already_connected", "&cYou are already connected to this server!", configuration);
|
||||
setIfUnexistant("already_connected_proxy", "&cYou are already connected to this proxy!", configuration);
|
||||
setIfUnexistant("already_connecting", "&cAlready connecting to this server!", configuration);
|
||||
- setIfUnexistant("command_list_format", "&aServers:&r", configuration);
|
||||
setIfUnexistant("command_list", "&a[{0}] &e({1}): &r{2}", configuration);
|
||||
setIfUnexistant("connect_kick", "&cKicked whilst connecting to {0}: {1}", configuration);
|
||||
setIfUnexistant("current_server", "&6You are currently connected to {0}.", configuration);
|
||||
@@ -84,38 +83,12 @@ public class MessagesConfiguration extends FlameConfig {
|
||||
setIfUnexistant("command_ip", "&9IP of {0} is {1}", configuration);
|
||||
setIfUnexistant("illegal_chat_characters", "&cIllegal characters in chat ({0})", configuration);
|
||||
|
||||
- // FlameCord start - Antibot System
|
||||
- setIfUnexistant("antibot_accounts", "&c&lFlameCord\n\n&cYou have too many accounts! ({0})\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
- setIfUnexistant("antibot_fastchat", "&c&lFlameCord\n\n&cYou are chatting too fast!\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
- setIfUnexistant("antibot_firewall", "&c&lFlameCord\n\n&cYou are blocked from this server!\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
- setIfUnexistant("antibot_nickname", "&c&lFlameCord\n\n&cYour nickname was detected as bot! ({0})\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
- setIfUnexistant("antibot_password", "&c&lFlameCord\n\n&cYour password is used by other players! ({0})\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
- setIfUnexistant("antibot_ratelimit", "&c&lFlameCord\n\n&cYou are connecting too fast! ({0})\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
- setIfUnexistant("antibot_reconnect", "&c&lFlameCord\n\n&cReconnect {0} more times to enter!\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
- setIfUnexistant("antibot_country", "&c&lFlameCord\n\n&cYour country {0} is blacklisted!\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
- setIfUnexistant("antibot_stats", "&c&lFlameCord Antibot Stats\n &7■ Total Pings: &a{0}\n &7■ Total Connections: &b{1}\n\n &7■ Current Pings: &a{2}\n &7■ Current Connections: &b{3}", configuration);
|
||||
- // FlameCord end - Antibot System
|
||||
-
|
||||
- // FlameCord - Bungee Plugins Command
|
||||
- setIfUnexistant("flamecord_bplugins_nopermission", "&cYou don't have permission to do this!", configuration);
|
||||
- setIfUnexistant("flamecord_bplugins_separator", ", ", configuration);
|
||||
- setIfUnexistant("flamecord_bplugins_header", "&aPlugins ({0}): ", configuration);
|
||||
-
|
||||
- // FlameCord - Bungee Plugins Command
|
||||
- setIfUnexistant("flamecord_bip_nopermission", "&cYou don't have permission to do this!", configuration);
|
||||
- setIfUnexistant("flamecord_bip_offline", "&cThe player is not online!", configuration);
|
||||
- setIfUnexistant("flamecord_bip_usage", "&c/bip <player>", configuration);
|
||||
- setIfUnexistant("flamecord_bip", "&aInformation about {0}&a:\n&aUUID: &b{1}\n&aIP: &b{2}\n&aPing: &b{3}ms\n&aLocale: &b{4}\n&aView Distance: &b{5}\n&aCurrent Server: &b{6}", configuration);
|
||||
-
|
||||
// FlameCord
|
||||
setIfUnexistant("flamecord_reload", "&aAll files had been successfully reloaded!", configuration);
|
||||
setIfUnexistant("flamecord_help",
|
||||
"&aFlameCord&b {0}&a by&b LinsaFTW\n&e /flamecord reload&7 >&b Reloads FlameCord files!\n&e /flamecord firewall <add/remove> <ip>&7 >&b Firewall certain ips!\n&e /bplugins&7 >&b Show the plugin list!\n&e /bip <player>&7 >&b Show the ip and info of a player!\n&e /flamecord help&7 >&b Shows this message!",
|
||||
configuration);
|
||||
setIfUnexistant("flamecord_nopermission", "&cYou don't have permission to do this!", configuration);
|
||||
- setIfUnexistant("flamecord_firewall_help", "&c/flamecord firewall <add/remove> <ip>", configuration);
|
||||
- setIfUnexistant("flamecord_firewall_add", "&cThe ip {0} was added to the firewall!", configuration);
|
||||
- setIfUnexistant("flamecord_firewall_remove", "&cThe ip {0} was removed from the firewall!", configuration);
|
||||
|
||||
configurationProvider.save(configuration, configurationFile);
|
||||
|
||||
diff --git a/module/cmd-server/src/main/java/net/md_5/bungee/module/cmd/server/CommandServer.java b/module/cmd-server/src/main/java/net/md_5/bungee/module/cmd/server/CommandServer.java
|
||||
index 698b420f4..e4ad7e389 100644
|
||||
--- a/module/cmd-server/src/main/java/net/md_5/bungee/module/cmd/server/CommandServer.java
|
||||
@ -217,7 +146,7 @@ index 91d60bfb3..cc76325b2 100644
|
||||
}
|
||||
}
|
||||
diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
||||
index 7cbac8937..8edaa3026 100644
|
||||
index b17e3b0c1..1fb7bb2a7 100644
|
||||
--- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
||||
+++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
||||
@@ -626,8 +626,8 @@ public class BungeeCord extends ProxyServer
|
||||
|
@ -1,4 +1,4 @@
|
||||
From fec0949f3ebda6711d1dddfdfb8774917e9849e3 Mon Sep 17 00:00:00 2001
|
||||
From 4638e35491b0721cf1ab99b44f45a993a0271af0 Mon Sep 17 00:00:00 2001
|
||||
From: LinsaFTW <25271111+linsaftw@users.noreply.github.com>
|
||||
Date: Fri, 4 Mar 2022 13:35:53 -0300
|
||||
Subject: [PATCH] Antibot System
|
||||
@ -1101,14 +1101,14 @@ index 000000000..44d773abe
|
||||
+ }
|
||||
+}
|
||||
diff --git a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/FlameCordConfiguration.java b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/FlameCordConfiguration.java
|
||||
index 9912fc25c..9b0c542aa 100644
|
||||
index 9912fc25c..9834c8efa 100644
|
||||
--- a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/FlameCordConfiguration.java
|
||||
+++ b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/FlameCordConfiguration.java
|
||||
@@ -16,6 +16,166 @@ import net.md_5.bungee.config.Configuration;
|
||||
@@ -16,6 +16,175 @@ import net.md_5.bungee.config.Configuration;
|
||||
import net.md_5.bungee.config.ConfigurationProvider;
|
||||
|
||||
public class FlameCordConfiguration extends FlameConfig {
|
||||
+ // FlameCord start - Antibot System
|
||||
+ // Antibot accounts
|
||||
+ @Getter
|
||||
+ private boolean antibotAccountsEnabled = true;
|
||||
+ @Getter
|
||||
@ -1117,6 +1117,8 @@ index 9912fc25c..9b0c542aa 100644
|
||||
+ private int antibotAccountsLimit = 3;
|
||||
+ @Getter
|
||||
+ private boolean antibotAccountsLog = true;
|
||||
+
|
||||
+ // Antibot country
|
||||
+ @Getter
|
||||
+ private boolean antibotCountryEnabled = true;
|
||||
+ @Getter
|
||||
@ -1127,6 +1129,8 @@ index 9912fc25c..9b0c542aa 100644
|
||||
+ private Collection<String> antibotFirewalledExceptions = Arrays.asList("BadPacketException", "QuietException", "IllegalStateConfig", "FastException");
|
||||
+ @Getter
|
||||
+ private boolean antibotCountryLog = true;
|
||||
+
|
||||
+ // Antibot fastchat
|
||||
+ @Getter
|
||||
+ private boolean antibotFastChatEnabled = true;
|
||||
+ @Getter
|
||||
@ -1146,6 +1150,7 @@ index 9912fc25c..9b0c542aa 100644
|
||||
+ @Getter
|
||||
+ private Collection<String> antibotFirewallWhitelist = Arrays.asList("127.0.0.1");
|
||||
+
|
||||
+ // Antibot nickname
|
||||
+ @Getter
|
||||
+ private boolean antibotNicknameEnabled = true;
|
||||
+ @Getter
|
||||
@ -1154,6 +1159,8 @@ index 9912fc25c..9b0c542aa 100644
|
||||
+ private Collection<String> antibotNicknameBlacklist = Arrays.asList("mcstorm", "mcdown", "mcbot", "theresa_bot", "dropbot", "kingbot");
|
||||
+ @Getter
|
||||
+ private boolean antibotNicknameLog = true;
|
||||
+
|
||||
+ // Antibot password
|
||||
+ @Getter
|
||||
+ private boolean antibotPasswordEnabled = true;
|
||||
+ @Getter
|
||||
@ -1162,6 +1169,8 @@ index 9912fc25c..9b0c542aa 100644
|
||||
+ private int antibotPasswordLimit = 3;
|
||||
+ @Getter
|
||||
+ private boolean antibotPasswordLog = true;
|
||||
+
|
||||
+ // Antibot ratelimit
|
||||
+ @Getter
|
||||
+ private boolean antibotRatelimitEnabled = true;
|
||||
+ @Getter
|
||||
@ -1172,6 +1181,8 @@ index 9912fc25c..9b0c542aa 100644
|
||||
+ private int antibotRatelimitPingsPerSecond = 8;
|
||||
+ @Getter
|
||||
+ private boolean antibotRatelimitLog = true;
|
||||
+
|
||||
+ // Antibot reconnect
|
||||
+ @Getter
|
||||
+ private boolean antibotReconnectEnabled = true;
|
||||
+ @Getter
|
||||
@ -1264,29 +1275,36 @@ index 9912fc25c..9b0c542aa 100644
|
||||
+ this.antibotPacketsVlsPerByte = setIfUnexistant("antibot.packets.vls-per-byte", this.antibotPacketsVlsPerByte, config);
|
||||
+ this.antibotPacketsVlsPerPacket = setIfUnexistant("antibot.packets.vls-per-packet", this.antibotPacketsVlsPerPacket, config);
|
||||
+ this.antibotPacketsVlsToKick = setIfUnexistant("antibot.packets.vls-to-kick", this.antibotPacketsVlsToKick, config);
|
||||
+ this.antibotPacketsVlsToCancel = setIfUnexistant("antibot.packets.vls-to-cancel", this.antibotPacketsVlsToCancel, config);
|
||||
+ }
|
||||
+ // FlameCord end - Antibot System
|
||||
+
|
||||
// FlameCord - TCP Fast Open
|
||||
@Getter
|
||||
private int tcpFastOpen = 3;
|
||||
@@ -127,6 +287,8 @@ public class FlameCordConfiguration extends FlameConfig {
|
||||
@@ -127,6 +296,7 @@ public class FlameCordConfiguration extends FlameConfig {
|
||||
this.fakePlayersEnabled = setIfUnexistant("custom-motd.fakeplayers.enabled", this.fakePlayersEnabled, configuration);
|
||||
this.fakePlayersAmount = setIfUnexistant("custom-motd.fakeplayers.amount", this.fakePlayersAmount, configuration);
|
||||
this.fakePlayersMode = setIfUnexistant("custom-motd.fakeplayers.mode", this.fakePlayersMode, configuration);
|
||||
+ loadAntibot(configuration);
|
||||
+
|
||||
this.tcpFastOpen = setIfUnexistant("tcp-fast-open", this.tcpFastOpen, configuration);
|
||||
|
||||
this.loggerInitialhandler = setIfUnexistant("logger.initialhandler", this.loggerInitialhandler, configuration);
|
||||
@@ -135,6 +305,9 @@ public class FlameCordConfiguration extends FlameConfig {
|
||||
this.loggerHaProxy = setIfUnexistant("logger.haproxy", this.loggerHaProxy, configuration);
|
||||
this.loggerDetailedConnection = setIfUnexistant("logger.detailed-connect-errors", this.loggerDetailedConnection, configuration);
|
||||
|
||||
+ // FlameCord - Antibot System
|
||||
+ loadAntibot(configuration);
|
||||
+
|
||||
configurationProvider.save(configuration, configurationFile);
|
||||
} catch (final IOException e) {
|
||||
e.printStackTrace();
|
||||
diff --git a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
||||
index 70d5d61fe..731833f31 100644
|
||||
index 207cd1b1d..a39b4be62 100644
|
||||
--- a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
||||
+++ b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
||||
@@ -83,12 +83,27 @@ public class MessagesConfiguration extends FlameConfig {
|
||||
setIfUnexistant("command_ip", "&9IP of {0} is {1}", configuration);
|
||||
setIfUnexistant("illegal_chat_characters", "&cIllegal characters in chat ({0})", configuration);
|
||||
@@ -90,6 +90,22 @@ public class MessagesConfiguration extends FlameConfig {
|
||||
configuration);
|
||||
setIfUnexistant("flamecord_nopermission", "&cYou don't have permission to do this!", configuration);
|
||||
|
||||
+ // FlameCord start - Antibot System
|
||||
+ setIfUnexistant("antibot_accounts", "&c&lFlameCord\n\n&cYou have too many accounts! ({0})\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
@ -1298,21 +1316,15 @@ index 70d5d61fe..731833f31 100644
|
||||
+ setIfUnexistant("antibot_reconnect", "&c&lFlameCord\n\n&cReconnect {0} more times to enter!\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
+ setIfUnexistant("antibot_country", "&c&lFlameCord\n\n&cYour country {0} is blacklisted!\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
+ setIfUnexistant("antibot_stats", "&c&lFlameCord Antibot Stats\n &7■ Total Pings: &a{0}\n &7■ Total Connections: &b{1}\n\n &7■ Current Pings: &a{2}\n &7■ Current Connections: &b{3}", configuration);
|
||||
+ // FlameCord end - Antibot System
|
||||
+
|
||||
// FlameCord
|
||||
setIfUnexistant("flamecord_reload", "&aAll files had been successfully reloaded!", configuration);
|
||||
setIfUnexistant("flamecord_help",
|
||||
- "&aFlameCord&b {0}&a by&b LinsaFTW&a &&b Sammwy&r\n&e /flamecord reload&7 >&b Reloads FlameCord files!\n&e /flamecord help&7 >&b Shows this message!",
|
||||
+ "&aFlameCord&b {0}&a by&b LinsaFTW&a &&b Sammwy&r\n&e /flamecord reload&7 >&b Reloads FlameCord files!\n&e /flamecord firewall <add/remove> <ip>&7 >&b Firewall certain ips!\n&e /flamecord help&7 >&b Shows this message!",
|
||||
configuration);
|
||||
setIfUnexistant("flamecord_nopermission", "&cYou don't have permission to do this!", configuration);
|
||||
+
|
||||
+ setIfUnexistant("flamecord_firewall_help", "&c/flamecord firewall <add/remove> <ip>", configuration);
|
||||
+ setIfUnexistant("flamecord_firewall_add", "&cThe ip {0} was added to the firewall!", configuration);
|
||||
+ setIfUnexistant("flamecord_firewall_remove", "&cThe ip {0} was removed from the firewall!", configuration);
|
||||
|
||||
+ // FlameCord end - Antibot System
|
||||
+
|
||||
configurationProvider.save(configuration, configurationFile);
|
||||
|
||||
for (final String key : configuration.getKeys()) {
|
||||
diff --git a/flamecord/src/main/java/dev/_2lstudios/flamecord/enums/PacketsCheckResult.java b/flamecord/src/main/java/dev/_2lstudios/flamecord/enums/PacketsCheckResult.java
|
||||
new file mode 100644
|
||||
index 000000000..285810ea1
|
||||
|
@ -1,11 +1,11 @@
|
||||
From beef7acd3f06cbd730035f5807a94545970b88e1 Mon Sep 17 00:00:00 2001
|
||||
From fa07b114703cd16e45b39ab3ea9772858249086c Mon Sep 17 00:00:00 2001
|
||||
From: LinsaFTW <25271111+linsaftw@users.noreply.github.com>
|
||||
Date: Fri, 4 Mar 2022 14:09:35 -0300
|
||||
Subject: [PATCH] Allow Invalid Names
|
||||
|
||||
|
||||
diff --git a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/FlameCordConfiguration.java b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/FlameCordConfiguration.java
|
||||
index 9b0c542aa..b017baf25 100644
|
||||
index 9834c8efa..d9d3d6047 100644
|
||||
--- a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/FlameCordConfiguration.java
|
||||
+++ b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/FlameCordConfiguration.java
|
||||
@@ -16,6 +16,10 @@ import net.md_5.bungee.config.Configuration;
|
||||
@ -16,18 +16,19 @@ index 9b0c542aa..b017baf25 100644
|
||||
+ @Getter
|
||||
+ private boolean allowInvalidNames = false;
|
||||
+
|
||||
// FlameCord start - Antibot System
|
||||
// Antibot accounts
|
||||
@Getter
|
||||
private boolean antibotAccountsEnabled = true;
|
||||
@@ -287,6 +291,8 @@ public class FlameCordConfiguration extends FlameConfig {
|
||||
this.fakePlayersEnabled = setIfUnexistant("custom-motd.fakeplayers.enabled", this.fakePlayersEnabled, configuration);
|
||||
this.fakePlayersAmount = setIfUnexistant("custom-motd.fakeplayers.amount", this.fakePlayersAmount, configuration);
|
||||
this.fakePlayersMode = setIfUnexistant("custom-motd.fakeplayers.mode", this.fakePlayersMode, configuration);
|
||||
@@ -305,6 +309,9 @@ public class FlameCordConfiguration extends FlameConfig {
|
||||
this.loggerHaProxy = setIfUnexistant("logger.haproxy", this.loggerHaProxy, configuration);
|
||||
this.loggerDetailedConnection = setIfUnexistant("logger.detailed-connect-errors", this.loggerDetailedConnection, configuration);
|
||||
|
||||
+ // FlameCord - Allow Invalid Names
|
||||
+ this.allowInvalidNames = setIfUnexistant("allow-invalid-names", this.allowInvalidNames, configuration);
|
||||
+
|
||||
// FlameCord - Antibot System
|
||||
loadAntibot(configuration);
|
||||
|
||||
this.tcpFastOpen = setIfUnexistant("tcp-fast-open", this.tcpFastOpen, configuration);
|
||||
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
|
||||
index c530c8b2c..9978b9db1 100644
|
||||
--- a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
|
||||
|
@ -1,11 +1,11 @@
|
||||
From 87b7ba071d916722920d1cbe01a36fb379fbf81a Mon Sep 17 00:00:00 2001
|
||||
From b35a4719080e02355b7e5651ac302d38ba093f19 Mon Sep 17 00:00:00 2001
|
||||
From: xIsm4 <minelatinsoporte@gmail.com>
|
||||
Date: Thu, 4 Aug 2022 23:27:43 +0200
|
||||
Subject: [PATCH] Dont frame unreadable connections
|
||||
|
||||
|
||||
diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/MinecraftDecoder.java b/protocol/src/main/java/net/md_5/bungee/protocol/MinecraftDecoder.java
|
||||
index 074d2437..9a7bf9b5 100644
|
||||
index a1af4e09e..c06e506a6 100644
|
||||
--- a/protocol/src/main/java/net/md_5/bungee/protocol/MinecraftDecoder.java
|
||||
+++ b/protocol/src/main/java/net/md_5/bungee/protocol/MinecraftDecoder.java
|
||||
@@ -33,7 +33,7 @@ public class MinecraftDecoder extends MessageToMessageDecoder<ByteBuf>
|
@ -1,11 +1,11 @@
|
||||
From 0eb7dd9c239bb09fa8b87ad963b2203ea6f9e2eb Mon Sep 17 00:00:00 2001
|
||||
From b529f3bea516105b004b0f408a542309bdf6d157 Mon Sep 17 00:00:00 2001
|
||||
From: LinsaFTW <25271111+linsaftw@users.noreply.github.com>
|
||||
Date: Tue, 13 Sep 2022 20:41:48 -0300
|
||||
Subject: [PATCH] Avoid throwing IOOB on login
|
||||
|
||||
|
||||
diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/packet/LoginRequest.java b/protocol/src/main/java/net/md_5/bungee/protocol/packet/LoginRequest.java
|
||||
index 22a5b993..78a2d569 100644
|
||||
index 763d34c2f..57e50a8b6 100644
|
||||
--- a/protocol/src/main/java/net/md_5/bungee/protocol/packet/LoginRequest.java
|
||||
+++ b/protocol/src/main/java/net/md_5/bungee/protocol/packet/LoginRequest.java
|
||||
@@ -32,7 +32,8 @@ public class LoginRequest extends DefinedPacket
|
@ -1,4 +1,4 @@
|
||||
From 878867854391af17739c536b7db5c0992c8fcf84 Mon Sep 17 00:00:00 2001
|
||||
From 8bfc6056ed2800af6d48d1a1a8c8a2c532578a7d Mon Sep 17 00:00:00 2001
|
||||
From: LinsaFTW <25271111+linsaftw@users.noreply.github.com>
|
||||
Date: Tue, 15 Nov 2022 18:07:27 +0100
|
||||
Subject: [PATCH] Only show connection fail reason when detailed logger is
|
@ -1,4 +1,4 @@
|
||||
From 9356c9e66746a50197da675505bc256290c0832b Mon Sep 17 00:00:00 2001
|
||||
From 26e41d9fe50272a8da3ab5ee4b2579f445ec9780 Mon Sep 17 00:00:00 2001
|
||||
From: LinsaFTW <25271111+linsaftw@users.noreply.github.com>
|
||||
Date: Wed, 28 Dec 2022 14:23:54 -0300
|
||||
Subject: [PATCH] Optimize Decoder/Encoder Getter
|
@ -1,4 +1,4 @@
|
||||
From 2d29fee2a16ea7e57cec199acf6930a9e3880e90 Mon Sep 17 00:00:00 2001
|
||||
From 5b31050702cfdc5cb9f7c0b821083e783067ed8b Mon Sep 17 00:00:00 2001
|
||||
From: LinsaFTW <25271111+linsaftw@users.noreply.github.com>
|
||||
Date: Tue, 10 Jan 2023 16:37:13 -0300
|
||||
Subject: [PATCH] Dont Process Links For Kick Messages
|
||||
@ -117,7 +117,7 @@ index 4371374a9..2bb27e670 100644
|
||||
* The text of the component that will be displayed to the client
|
||||
*/
|
||||
diff --git a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
|
||||
index c2733d6e3..69b260b93 100644
|
||||
index 9978b9db1..816e318fe 100644
|
||||
--- a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
|
||||
+++ b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java
|
||||
@@ -846,7 +846,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
@ -1,25 +1,32 @@
|
||||
From 10210edef9cec9b3892205d79d9701ba5d9980df Mon Sep 17 00:00:00 2001
|
||||
From c3f0d477f364a0671d26222ad2b1d76c38db31da Mon Sep 17 00:00:00 2001
|
||||
From: LinsaFTW <25271111+linsaftw@users.noreply.github.com>
|
||||
Date: Wed, 11 Jan 2023 10:14:12 -0300
|
||||
Subject: [PATCH] Bungee Plugins Command
|
||||
|
||||
|
||||
diff --git a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
||||
index 84b907e28..ca3dd2397 100644
|
||||
index a39b4be62..190c00ea8 100644
|
||||
--- a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
||||
+++ b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
||||
@@ -96,6 +96,11 @@ public class MessagesConfiguration extends FlameConfig {
|
||||
@@ -100,11 +100,17 @@ public class MessagesConfiguration extends FlameConfig {
|
||||
setIfUnexistant("antibot_reconnect", "&c&lFlameCord\n\n&cReconnect {0} more times to enter!\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
setIfUnexistant("antibot_country", "&c&lFlameCord\n\n&cYour country {0} is blacklisted!\n\n&cError? Contact us on discord.gg/gF36AT3", configuration);
|
||||
setIfUnexistant("antibot_stats", "&c&lFlameCord Antibot Stats\n &7■ Total Pings: &a{0}\n &7■ Total Connections: &b{1}\n\n &7■ Current Pings: &a{2}\n &7■ Current Connections: &b{3}", configuration);
|
||||
-
|
||||
+
|
||||
+ // Firewall
|
||||
setIfUnexistant("flamecord_firewall_help", "&c/flamecord firewall <add/remove> <ip>", configuration);
|
||||
setIfUnexistant("flamecord_firewall_add", "&cThe ip {0} was added to the firewall!", configuration);
|
||||
setIfUnexistant("flamecord_firewall_remove", "&cThe ip {0} was removed from the firewall!", configuration);
|
||||
// FlameCord end - Antibot System
|
||||
|
||||
+
|
||||
+ // FlameCord - Bungee Plugins Command
|
||||
+ setIfUnexistant("flamecord_bplugins_nopermission", "&cYou don't have permission to do this!", configuration);
|
||||
+ setIfUnexistant("flamecord_bplugins_separator", ", ", configuration);
|
||||
+ setIfUnexistant("flamecord_bplugins_header", "&aPlugins ({0}): ", configuration);
|
||||
+
|
||||
// FlameCord
|
||||
setIfUnexistant("flamecord_reload", "&aAll files had been successfully reloaded!", configuration);
|
||||
setIfUnexistant("flamecord_help",
|
||||
|
||||
configurationProvider.save(configuration, configurationFile);
|
||||
|
||||
diff --git a/proxy/src/main/java/dev/_2lstudios/flamecord/commands/BungeePluginsCommand.java b/proxy/src/main/java/dev/_2lstudios/flamecord/commands/BungeePluginsCommand.java
|
||||
new file mode 100644
|
||||
index 000000000..2e20e9dca
|
||||
@ -72,7 +79,7 @@ index 000000000..2e20e9dca
|
||||
+ }
|
||||
+}
|
||||
diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
||||
index 8edaa3026..e09e32c94 100644
|
||||
index 1fb7bb2a7..5e9c7a98b 100644
|
||||
--- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
||||
+++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
||||
@@ -11,6 +11,7 @@ import com.google.gson.Gson;
|
@ -1,26 +1,26 @@
|
||||
From cf2b0add184a3df3dfdc9bf47c9b278117a4cd4c Mon Sep 17 00:00:00 2001
|
||||
From d789141493f79f24fadf8f0700e8b8330d5b54e5 Mon Sep 17 00:00:00 2001
|
||||
From: LinsaFTW <25271111+linsaftw@users.noreply.github.com>
|
||||
Date: Sun, 15 Jan 2023 10:12:45 -0300
|
||||
Subject: [PATCH] Bungee IP Command
|
||||
|
||||
|
||||
diff --git a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
||||
index ca3dd2397..d3d279d27 100644
|
||||
index 190c00ea8..5af35f897 100644
|
||||
--- a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
||||
+++ b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
||||
@@ -101,6 +101,12 @@ public class MessagesConfiguration extends FlameConfig {
|
||||
@@ -112,6 +112,12 @@ public class MessagesConfiguration extends FlameConfig {
|
||||
setIfUnexistant("flamecord_bplugins_separator", ", ", configuration);
|
||||
setIfUnexistant("flamecord_bplugins_header", "&aPlugins ({0}): ", configuration);
|
||||
|
||||
+ // FlameCord - Bungee Plugins Command
|
||||
+ // FlameCord - Bungee IP Command
|
||||
+ setIfUnexistant("flamecord_bip_nopermission", "&cYou don't have permission to do this!", configuration);
|
||||
+ setIfUnexistant("flamecord_bip_offline", "&cThe player is not online!", configuration);
|
||||
+ setIfUnexistant("flamecord_bip_usage", "&c/bip <player>", configuration);
|
||||
+ setIfUnexistant("flamecord_bip", "&aInformation about {0}&a:\n&aUUID: &b{1}\n&aIP: &b{2}\n&aPing: &b{3}ms\n&aLocale: &b{4}\n&aView Distance: &b{5}\n&aCurrent Server: &b{6}", configuration);
|
||||
+
|
||||
// FlameCord
|
||||
setIfUnexistant("flamecord_reload", "&aAll files had been successfully reloaded!", configuration);
|
||||
setIfUnexistant("flamecord_help",
|
||||
configurationProvider.save(configuration, configurationFile);
|
||||
|
||||
for (final String key : configuration.getKeys()) {
|
||||
diff --git a/proxy/src/main/java/dev/_2lstudios/flamecord/commands/BungeeIPCommand.java b/proxy/src/main/java/dev/_2lstudios/flamecord/commands/BungeeIPCommand.java
|
||||
new file mode 100644
|
||||
index 000000000..85313491e
|
||||
@ -73,7 +73,7 @@ index 000000000..85313491e
|
||||
+ }
|
||||
+}
|
||||
diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
||||
index e09e32c94..4e75d5a22 100644
|
||||
index 5e9c7a98b..88c146573 100644
|
||||
--- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
||||
+++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
||||
@@ -11,6 +11,7 @@ import com.google.gson.Gson;
|
@ -1,30 +1,33 @@
|
||||
From 3ca6b631ac234e011a2a8a09b99f42db68b81e79 Mon Sep 17 00:00:00 2001
|
||||
From 2554e3976ae6b01337b4a65785d257f91a30947d Mon Sep 17 00:00:00 2001
|
||||
From: LinsaFTW <25271111+linsaftw@users.noreply.github.com>
|
||||
Date: Tue, 26 Apr 2022 10:58:11 -0300
|
||||
Subject: [PATCH] Command List Format
|
||||
Date: Sun, 15 Jan 2023 19:03:34 -0300
|
||||
Subject: [PATCH] List Command Format
|
||||
|
||||
|
||||
diff --git a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
||||
index 5faab616..9ae20cbb 100644
|
||||
index 5af35f897..3f261ca69 100644
|
||||
--- a/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
||||
+++ b/flamecord/src/main/java/dev/_2lstudios/flamecord/configuration/MessagesConfiguration.java
|
||||
@@ -35,6 +35,7 @@ public class MessagesConfiguration extends FlameConfig {
|
||||
setIfUnexistant("already_connected", "&cYou are already connected to this server!", configuration);
|
||||
setIfUnexistant("already_connected_proxy", "&cYou are already connected to this proxy!", configuration);
|
||||
setIfUnexistant("already_connecting", "&cAlready connecting to this server!", configuration);
|
||||
@@ -118,6 +118,9 @@ public class MessagesConfiguration extends FlameConfig {
|
||||
setIfUnexistant("flamecord_bip_usage", "&c/bip <player>", configuration);
|
||||
setIfUnexistant("flamecord_bip", "&aInformation about {0}&a:\n&aUUID: &b{1}\n&aIP: &b{2}\n&aPing: &b{3}ms\n&aLocale: &b{4}\n&aView Distance: &b{5}\n&aCurrent Server: &b{6}", configuration);
|
||||
|
||||
+ // FlameCord - List Command Format
|
||||
+ setIfUnexistant("command_list_format", "&aServers:&r", configuration);
|
||||
setIfUnexistant("command_list", "&a[{0}] &e({1}): &r{2}", configuration);
|
||||
setIfUnexistant("connect_kick", "&cKicked whilst connecting to {0}: {1}", configuration);
|
||||
setIfUnexistant("current_server", "&6You are currently connected to {0}.", configuration);
|
||||
+
|
||||
configurationProvider.save(configuration, configurationFile);
|
||||
|
||||
for (final String key : configuration.getKeys()) {
|
||||
diff --git a/module/cmd-list/src/main/java/net/md_5/bungee/module/cmd/list/CommandList.java b/module/cmd-list/src/main/java/net/md_5/bungee/module/cmd/list/CommandList.java
|
||||
index c2227110..d9c8e352 100644
|
||||
index c22271105..0a5899319 100644
|
||||
--- a/module/cmd-list/src/main/java/net/md_5/bungee/module/cmd/list/CommandList.java
|
||||
+++ b/module/cmd-list/src/main/java/net/md_5/bungee/module/cmd/list/CommandList.java
|
||||
@@ -25,6 +25,8 @@ public class CommandList extends Command
|
||||
@@ -25,6 +25,9 @@ public class CommandList extends Command
|
||||
@Override
|
||||
public void execute(CommandSender sender, String[] args)
|
||||
{
|
||||
+ sender.sendMessage( ProxyServer.getInstance().getTranslation( "command_list_format" ) );
|
||||
+ // FlameCord - List Command Format
|
||||
+ sender.sendMessage( ProxyServer.getInstance().getTranslation( "command_list_format") );
|
||||
+
|
||||
for ( ServerInfo server : ProxyServer.getInstance().getServers().values() )
|
||||
{
|
Loading…
Reference in New Issue
Block a user