aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/fishing/FishingHookDisplayConfig.java12
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt3
2 files changed, 13 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/fishing/FishingHookDisplayConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/fishing/FishingHookDisplayConfig.java
index e2cfdfa05..b0357eb0c 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/fishing/FishingHookDisplayConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/fishing/FishingHookDisplayConfig.java
@@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.config.FeatureToggle;
import at.hannibal2.skyhanni.config.core.config.Position;
import com.google.gson.annotations.Expose;
import io.github.moulberry.moulconfig.annotations.ConfigEditorBoolean;
+import io.github.moulberry.moulconfig.annotations.ConfigEditorText;
import io.github.moulberry.moulconfig.annotations.ConfigOption;
public class FishingHookDisplayConfig {
@@ -16,6 +17,15 @@ public class FishingHookDisplayConfig {
@Expose
@ConfigOption(
+ name = "Custom Alert",
+ desc = "Replaces the default §c§l!!!§r Hypixel\n" +
+ "§7alert with your own custom one."
+ )
+ @ConfigEditorText
+ public String customAlertText = "&c&l!!!";
+
+ @Expose
+ @ConfigOption(
name = "Hide Armor Stand",
desc = "Hide the original armor stand from Hypixel when the SkyHanni display is enabled."
)
@@ -23,5 +33,5 @@ public class FishingHookDisplayConfig {
public boolean hideArmorStand = true;
@Expose
- public Position position = new Position(460, -240, 3.4f);
+ public Position position = new Position(-475, -240, 3.4f, true);
}
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt
index 671ae0841..32e31edf0 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingHookDisplay.kt
@@ -75,8 +75,9 @@ class FishingHookDisplay {
return
}
if (!armorStand.hasCustomName()) return
+ val alertText = if (armorStand.name == "§c§l!!!") config.customAlertText.replace("&", "§") else armorStand.name
- config.position.renderString(armorStand.name, posLabel = "Fishing Hook Display")
+ config.position.renderString(alertText, posLabel = "Fishing Hook Display")
}
private fun EntityArmorStand.hasCorrectName(): Boolean {