Skip to content

Commit

Permalink
Merge pull request #39 from RappyLabyAddons/fix/coloredTeamAndClan
Browse files Browse the repository at this point in the history
Fix `@CLAN` and `@TEAM` getting overwritten
  • Loading branch information
RappyTV authored Dec 7, 2023
2 parents 9bc05e1 + 103bc64 commit 96d7389
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ labyMod {
author = "RappyTV"
description = "Adds some ingame utilities for OPSUCHT.net | Not affiliated with Interwebmedia GmbH"
minecraftVersion = "1.19<*"
version = System.getenv().getOrDefault("VERSION", "1.1.8")
version = System.getenv().getOrDefault("VERSION", "1.1.9")
}

minecraft {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public void onChatReceive(ChatReceiveEvent event) {

if(config.coloredMentions().get() && text.contains("@")) {
for(MatchResult matcher : pattern.matcher(text).results().toList()) {
if(matcher.group().equals("@TEAM") || matcher.group().equals("@CLAN")) continue;
replaceComponent(message, matcher.group(), () -> Component.text(matcher.group(), NamedTextColor.AQUA).copy());
}
event.setMessage(message);
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rootProject.name = "OPSUCHT-Utilities"

pluginManagement {
val labyGradlePluginVersion = "0.3.29"
val labyGradlePluginVersion = "0.3.38"
plugins {
id("net.labymod.gradle") version (labyGradlePluginVersion)
}
Expand Down

0 comments on commit 96d7389

Please sign in to comment.