aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorHacktheTime <131038646+HacktheTime@users.noreply.github.com>2023-10-26 00:41:57 +0200
committerGitHub <noreply@github.com>2023-10-26 00:41:57 +0200
commit4878b69fa794fbb81a09db6da33dc84c4ab0a993 (patch)
treec8b0226b9f4466b20bd7817a3ec1bccf9109bc90 /common
parent229c0892f283275b57ed0d45ad401413543f218c (diff)
downloadBBsentials-4878b69fa794fbb81a09db6da33dc84c4ab0a993.tar.gz
BBsentials-4878b69fa794fbb81a09db6da33dc84c4ab0a993.tar.bz2
BBsentials-4878b69fa794fbb81a09db6da33dc84c4ab0a993.zip
added pass rebuy and removed maddox b. from quick command hotket
Diffstat (limited to 'common')
-rw-r--r--common/src/main/java/de/hype/bbsentials/common/chat/Chat.java17
1 files changed, 7 insertions, 10 deletions
diff --git a/common/src/main/java/de/hype/bbsentials/common/chat/Chat.java b/common/src/main/java/de/hype/bbsentials/common/chat/Chat.java
index 000cd70..b6ec197 100644
--- a/common/src/main/java/de/hype/bbsentials/common/chat/Chat.java
+++ b/common/src/main/java/de/hype/bbsentials/common/chat/Chat.java
@@ -1,4 +1,5 @@
-package de.hype.bbsentials.common.chat;
+
+ de.hype.bbsentials.common.chat;
import de.hype.bbsentials.common.api.Formatting;
import de.hype.bbsentials.common.client.BBsentials;
@@ -158,18 +159,10 @@ public class Chat {
}
public static void setChatPromtId(String logMessage) {
- String cbUUIDPattern = "/cb ([a-fA-F0-9-]+)";
- Pattern cbPattern = Pattern.compile(cbUUIDPattern);
- Matcher cbMatcher = cbPattern.matcher(logMessage);
-
String yesClickAction = "/chatprompt ([a-fA-F0-9-]+) YES";
Pattern yesPattern = Pattern.compile(yesClickAction);
Matcher yesMatcher = yesPattern.matcher(logMessage);
String lastPrompt = null;
- if (cbMatcher.find()) {
- lastPrompt = cbMatcher.group(1);
- setChatCommand("/cb " + lastPrompt,10);
- }
if (yesMatcher.find()) {
lastPrompt = yesMatcher.group(1);
setChatCommand("/chatprompt " + lastPrompt + " YES",10);
@@ -321,7 +314,7 @@ public class Chat {
else if (((messageUnformatted.startsWith("Party Leader: ") && messageUnformatted.endsWith(BBsentials.getConfig().getUsername() + " ●"))) || (message.contains(BBsentials.getConfig().getUsername() + " warped the party to a SkyBlock dungeon!")) || message.startsWith("The party was transferred to " + BBsentials.getConfig().getUsername()) || message.getUnformattedString().endsWith(" has promoted " + BBsentials.getConfig().getUsername() + " to Party Leader") || (message.contains("warped to your dungeon"))) {
BBsentials.getConfig().setIsLeader(true);
if (BBsentials.getConfig().isDetailedDevModeEnabled()) {
- sendPrivateMessageToSelfDebug("Leader: " + BBsentials.getConfig().isPartyLeader());
+ ("Leader: " + BBsentials.getConfig().isPartyLeader());
}
}
else if (message.getUnformattedString().equals("Please type /report confirm to log your report for staff review.")) {
@@ -332,6 +325,9 @@ public class Chat {
BBsentials.splashStatusUpdateListener.setStatus(SplashUpdatePacket.STATUS_SPLASHING);
}
}
+ else if (messageUnformatted.equals("Click here to purchase a new 6 hour pass for 10,000 Coins"){
+ setChatCommand("/purchasecrystallhollowspass",30);
+ }
}
else if (message.isFromGuild()) {
@@ -350,6 +346,7 @@ public class Chat {
setChatCommand("/p warp",10);
}
}
+
}
else if (message.isMsg()) {
if (messageUnformatted.endsWith("bb:party me")) {