Skip to content

Commit

Permalink
v0.1.8 - auto gg
Browse files Browse the repository at this point in the history
  • Loading branch information
RedthMC committed Sep 12, 2023
1 parent e931aa2 commit 648453a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
# 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.
- **Height Overlay Distance HUD** - Shows how many blocks you are away from height limit.

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)
## Images
![height-limit.png](images/height-limit.png)
![settings-page.png](images/settings-page.png)
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 8 additions & 2 deletions src/main/java/me/redth/mmcutils/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/me/redth/mmcutils/MMCUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 648453a

Please sign in to comment.