From 648453a103e8ba3beb5f18e3672606a4acffa008 Mon Sep 17 00:00:00 2001 From: Redth Date: Tue, 12 Sep 2023 22:01:03 +0800 Subject: [PATCH] v0.1.8 - auto gg --- README.md | 12 +++++++----- gradle.properties | 2 +- src/main/java/me/redth/mmcutils/Configuration.java | 10 ++++++++-- src/main/java/me/redth/mmcutils/MMCUtils.java | 6 ++++-- 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8303c0f..82d8d55 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ # MMCUtils Utilities for Minemen Club -# Features +## Features - **Auto Practice** - Go straight into practice once joined. - **Auto Party Chat** - Enter party chat once joined practice. +- **Auto GG** - Send GG once a game ended. - **Disable Player List** - Prevent accidentally tapping tab and lag your pc. - **Height Overlay** - Make wools and terracottas darker at height limit. - **Height Overlay Darkness** - Adjust the darkness of height limit overlay. @@ -11,9 +12,10 @@ Utilities for Minemen Club Configurable in `OneConfig` menu -# Requirements +## Requirements +### Height Overlay - OptiFine Smooth Lighting: On -# Images -![height-limit.png](images%2Fheight-limit.png) -![settings-page.png](images%2Fsettings-page.png) \ No newline at end of file +## Images +![height-limit.png](images/height-limit.png) +![settings-page.png](images/settings-page.png) \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 9a3ad46..9b8985b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ mod_name=MMCUtils # Sets the id of your mod that mod loaders use to recognize it. mod_id=mmcutils # Sets the version of your mod. Make sure to update this when you make changes according to semver. -mod_version=0.1.7 +mod_version=0.1.8 # Sets the name of the jar file that you put in your 'mods' folder. mod_archives_name=MMCUtils diff --git a/src/main/java/me/redth/mmcutils/Configuration.java b/src/main/java/me/redth/mmcutils/Configuration.java index 9daea95..9237403 100644 --- a/src/main/java/me/redth/mmcutils/Configuration.java +++ b/src/main/java/me/redth/mmcutils/Configuration.java @@ -16,13 +16,19 @@ public class Configuration extends Config { @Switch(name = "Auto Party Chat", subcategory = "Joining", description = "Enter party chat once joined practice.") public static boolean autoPartyChat = true; + @Switch(name = "Auto GG", subcategory = "Other", description = "Send specified text once a game ended.") + public static boolean autoGG = false; + + @Switch(name = "Auto GG Text", subcategory = "Other", description = "Specify what text to send.") + public static String autoGGText = "gg"; + @Switch(name = "Disable Player List", subcategory = "Other", description = "Prevent accidentally tapping tab and lag your pc.") public static boolean disablePlayerList = true; - @Switch(name = "Height Overlay", category = "Height Overlay", description = "Make wools and terracottas darker at height limit.") + @Switch(name = "Height Overlay", category = "Height Overlay", subcategory = "Height Overlay", description = "Make wools and terracottas darker at height limit.") public static boolean heightLimitOverlay = true; - @Slider(name = "Height Overlay Darkness", category = "Height Overlay", min = 0, max = 10, step = 1, description = "Adjust the darkness of height limit overlay.") + @Slider(name = "Height Overlay Darkness", category = "Height Overlay", subcategory = "Height Overlay", description = "Adjust the darkness of height limit overlay.", min = 0, max = 10, step = 1) public static int heightLimitDarkness = 3; @HUD(name = "Height Limit Distance HUD", category = "Height Limit Distance HUD") diff --git a/src/main/java/me/redth/mmcutils/MMCUtils.java b/src/main/java/me/redth/mmcutils/MMCUtils.java index acde80f..a22de49 100644 --- a/src/main/java/me/redth/mmcutils/MMCUtils.java +++ b/src/main/java/me/redth/mmcutils/MMCUtils.java @@ -64,8 +64,10 @@ public void run() { if (!inBridgingGame) { if (BRIDGING_GAMES.contains(clean)) inBridgingGame = true; - } else if (clean.startsWith("Match Results")) { - inBridgingGame = false; + } + if (clean.startsWith("Match Results")) { + if (inBridgingGame) inBridgingGame = false; + if (Configuration.autoGG) mc.thePlayer.sendChatMessage(Configuration.autoGGText); } }