Skip to content

Commit 648453a

Browse files
committed
v0.1.8 - auto gg
1 parent e931aa2 commit 648453a

File tree

4 files changed

+20
-10
lines changed

4 files changed

+20
-10
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
# MMCUtils
22
Utilities for Minemen Club
33

4-
# Features
4+
## Features
55
- **Auto Practice** - Go straight into practice once joined.
66
- **Auto Party Chat** - Enter party chat once joined practice.
7+
- **Auto GG** - Send GG once a game ended.
78
- **Disable Player List** - Prevent accidentally tapping tab and lag your pc.
89
- **Height Overlay** - Make wools and terracottas darker at height limit.
910
- **Height Overlay Darkness** - Adjust the darkness of height limit overlay.
1011
- **Height Overlay Distance HUD** - Shows how many blocks you are away from height limit.
1112

1213
Configurable in `OneConfig` menu
1314

14-
# Requirements
15+
## Requirements
16+
### Height Overlay
1517
- OptiFine Smooth Lighting: On
1618

17-
# Images
18-
![height-limit.png](images%2Fheight-limit.png)
19-
![settings-page.png](images%2Fsettings-page.png)
19+
## Images
20+
![height-limit.png](images/height-limit.png)
21+
![settings-page.png](images/settings-page.png)

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ mod_name=MMCUtils
55
# Sets the id of your mod that mod loaders use to recognize it.
66
mod_id=mmcutils
77
# Sets the version of your mod. Make sure to update this when you make changes according to semver.
8-
mod_version=0.1.7
8+
mod_version=0.1.8
99
# Sets the name of the jar file that you put in your 'mods' folder.
1010
mod_archives_name=MMCUtils
1111

src/main/java/me/redth/mmcutils/Configuration.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,19 @@ public class Configuration extends Config {
1616
@Switch(name = "Auto Party Chat", subcategory = "Joining", description = "Enter party chat once joined practice.")
1717
public static boolean autoPartyChat = true;
1818

19+
@Switch(name = "Auto GG", subcategory = "Other", description = "Send specified text once a game ended.")
20+
public static boolean autoGG = false;
21+
22+
@Switch(name = "Auto GG Text", subcategory = "Other", description = "Specify what text to send.")
23+
public static String autoGGText = "gg";
24+
1925
@Switch(name = "Disable Player List", subcategory = "Other", description = "Prevent accidentally tapping tab and lag your pc.")
2026
public static boolean disablePlayerList = true;
2127

22-
@Switch(name = "Height Overlay", category = "Height Overlay", description = "Make wools and terracottas darker at height limit.")
28+
@Switch(name = "Height Overlay", category = "Height Overlay", subcategory = "Height Overlay", description = "Make wools and terracottas darker at height limit.")
2329
public static boolean heightLimitOverlay = true;
2430

25-
@Slider(name = "Height Overlay Darkness", category = "Height Overlay", min = 0, max = 10, step = 1, description = "Adjust the darkness of height limit overlay.")
31+
@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)
2632
public static int heightLimitDarkness = 3;
2733

2834
@HUD(name = "Height Limit Distance HUD", category = "Height Limit Distance HUD")

src/main/java/me/redth/mmcutils/MMCUtils.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ public void run() {
6464
if (!inBridgingGame) {
6565
if (BRIDGING_GAMES.contains(clean))
6666
inBridgingGame = true;
67-
} else if (clean.startsWith("Match Results")) {
68-
inBridgingGame = false;
67+
}
68+
if (clean.startsWith("Match Results")) {
69+
if (inBridgingGame) inBridgingGame = false;
70+
if (Configuration.autoGG) mc.thePlayer.sendChatMessage(Configuration.autoGGText);
6971
}
7072
}
7173

0 commit comments

Comments
 (0)