diff options
author | bowser0000 <bowser0000@gmail.com> | 2021-02-15 00:57:55 -0500 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2021-02-15 00:57:55 -0500 |
commit | e07ddd78ad98bf72122bc175e3a3aebfeb467605 (patch) | |
tree | 1f157a85cf07975432fa6638bf38a96078a61fd2 /src/main/java/me/Danker | |
parent | 50687d5b7d6a2bea7e55a314f925cbea81284567 (diff) | |
download | SkyblockMod-e07ddd78ad98bf72122bc175e3a3aebfeb467605.tar.gz SkyblockMod-e07ddd78ad98bf72122bc175e3a3aebfeb467605.tar.bz2 SkyblockMod-e07ddd78ad98bf72122bc175e3a3aebfeb467605.zip |
Fix low health alert when with youtuber/admin with number in username
Diffstat (limited to 'src/main/java/me/Danker')
-rw-r--r-- | src/main/java/me/Danker/DankersSkyblockMod.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java index 1aafab8..b45aa58 100644 --- a/src/main/java/me/Danker/DankersSkyblockMod.java +++ b/src/main/java/me/Danker/DankersSkyblockMod.java @@ -3044,7 +3044,7 @@ public class DankersSkyblockMod { if (ToggleCommand.lowHealthNotifyToggled && Utils.inDungeons && world != null) { List<String> scoreboard = ScoreboardHandler.getSidebarLines(); for (String score : scoreboard) { - if (score.endsWith("❤") && score.matches(".*§c\\d.*")) { + if (score.endsWith("❤") && score.matches(".* §c\\d.*")) { String name = score.substring(score.indexOf(" ") + 1); Utils.createTitle(EnumChatFormatting.RED + "LOW HEALTH!\n" + name, 1); break; |