You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MatchernoPlusMatcher = Pattern.compile("(§b\\[MVP]|§a\\[VIP]) (" + player + ")").matcher(msg); // for vip or mvp
41
38
MatcherdefaultMatcher = Pattern.compile("((§7)+" + player + ")").matcher(msg); // for players without a rank (grey name)
42
39
MatcherrankMatcher = Pattern.compile("((§b|§6)\\[MVP(§r)*§.\\+{1,2}(§r)*(§b|§6)]|§a\\[VIP(§r)*§6\\+(§r)*§a]) (" + player + ")").matcher(msg); // for players with vip+/mvp+/mvp++
40
+
MatchermissingRankMatcher = Pattern.compile("(§." + player + ")").matcher(msg); // for replacing just the name and one colour code
43
41
44
42
if (NewConfig.PLAYER_HYPIXEL_RANK == 1) { // default rank
45
43
if (defaultMatcher.find()) {
@@ -50,7 +48,7 @@ public void onChat(ClientChatReceivedEvent event) {
Copy file name to clipboardExpand all lines: src/main/java/com/ownwn/ownwnaddons/utils/FetchOnServerJoin.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ public void getHypixelRank(TickEvent.ClientTickEvent event) {
45
45
if (Minecraft.getMinecraft().thePlayer == null) {
46
46
return;
47
47
}
48
-
Minecraft.getMinecraft().thePlayer.addChatMessage(newChatComponentText(OwnwnAddons.PREFIX + "§aYour Hypixel rank isn't set! set it by §eclicking here §aor with §b/owa getrank").setChatStyle(newChatStyle().setChatClickEvent(newClickEvent(ClickEvent.Action.RUN_COMMAND, "/owa getrank"))));
48
+
UChat.chat(OwnwnAddons.PREFIX + "&aYour Hypixel rank isn't set! The custom name thingo will not work without it.\n &aSet it in &b/owa");
0 commit comments