diff --git a/build.gradle.kts b/build.gradle.kts index 2d156a6..52f9a35 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -15,7 +15,7 @@ labyMod { namespace = "autogg" displayName = "AutoGG" author = "EinsLuca" - description = "This addon ensures that you automatically write GG into the chat after a round." + description = "Make yourself more likeable by automatically writing a GG in the chat after each round." minecraftVersion = "*" version = System.getenv().getOrDefault("VERSION", "1.0.0") } diff --git a/core/src/main/java/top/einsluca/autogg/AutoGGConfiguration.java b/core/src/main/java/top/einsluca/autogg/AutoGGConfiguration.java index cf9d342..18e93ee 100644 --- a/core/src/main/java/top/einsluca/autogg/AutoGGConfiguration.java +++ b/core/src/main/java/top/einsluca/autogg/AutoGGConfiguration.java @@ -23,9 +23,6 @@ public class AutoGGConfiguration extends AddonConfig { @SwitchWidget.SwitchSetting private final ConfigProperty defaults = new ConfigProperty<>(true); - @SwitchWidget.SwitchSetting - private final ConfigProperty hypixel = new ConfigProperty<>(false); - @TextFieldWidget.TextFieldSetting public final ConfigProperty message = new ConfigProperty<>("gg"); @@ -52,7 +49,4 @@ public ConfigProperty getDefaults() { return defaults; } - public ConfigProperty getHypixel() { - return hypixel; - } } diff --git a/core/src/main/java/top/einsluca/autogg/server/HypixelConfiguration.java b/core/src/main/java/top/einsluca/autogg/server/HypixelConfiguration.java deleted file mode 100644 index cb90815..0000000 --- a/core/src/main/java/top/einsluca/autogg/server/HypixelConfiguration.java +++ /dev/null @@ -1,20 +0,0 @@ -package top.einsluca.autogg.server; - -import java.util.List; - -public class HypixelConfiguration implements ServerConfiguration { - @Override - public List getServerAddress() { - return List.of("hypixel.net"); - } - - @Override - public List getFormat() { - return List.of("Game over!", "won the game!", "They captured all wools!", "YOUR STATISTICS"); - } - - @Override - public List getFilter() { - return List.of(":"); - } -} diff --git a/core/src/main/java/top/einsluca/autogg/server/ServerConfiguration.java b/core/src/main/java/top/einsluca/autogg/server/ServerConfiguration.java index 84c969e..6471a7b 100644 --- a/core/src/main/java/top/einsluca/autogg/server/ServerConfiguration.java +++ b/core/src/main/java/top/einsluca/autogg/server/ServerConfiguration.java @@ -4,10 +4,13 @@ public interface ServerConfiguration { + // List of all available server addresses for this server List getServerAddress(); + // List of all messages on which the gg message should be sent List getFormat(); + // List of all characters for which, if present, the GG message should not be sent. (Serves for protection) List getFilter(); } diff --git a/core/src/main/resources/assets/autogg/i18n/de_de.json b/core/src/main/resources/assets/autogg/i18n/de_de.json index 488fd2e..4f8c00d 100644 --- a/core/src/main/resources/assets/autogg/i18n/de_de.json +++ b/core/src/main/resources/assets/autogg/i18n/de_de.json @@ -17,10 +17,6 @@ "name": "Standard-Server", "description": "Schalte ein oder aus, ob Standardserver genutzt werden sollen, eine Liste findest du weiter unten." }, - "hypixel": { - "name": "Hypixel", - "description": "Schalte Hypixel Support ein oder aus." - }, "message": { "name": "Nachricht", "description": "Die Nachricht die gesendet wird, wenn du ein Spiel gewinnst." diff --git a/core/src/main/resources/assets/autogg/i18n/en_us.json b/core/src/main/resources/assets/autogg/i18n/en_us.json index c53b690..9bb2331 100644 --- a/core/src/main/resources/assets/autogg/i18n/en_us.json +++ b/core/src/main/resources/assets/autogg/i18n/en_us.json @@ -17,10 +17,6 @@ "name": "Default servers", "description": "Toggle on or off whether to use default servers, you can find a list below." }, - "hypixel": { - "name": "Hypixel", - "description": "Switch Hypixel Support on or off." - }, "message": { "name": "Message", "description": "The message to send when the game ends."