aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhackthetime <l4bg0jb7@duck.com>2023-11-21 09:53:10 +0100
committerhackthetime <l4bg0jb7@duck.com>2023-11-21 09:53:10 +0100
commit20d4f8658d9697fa1aa04a9338f066b38a97ffc5 (patch)
tree88bcf2790c1a9a61716786d9f71ea6b9372deb48
parentca8c9a40cbd393ddc1559382fb29a7f3a7c3a646 (diff)
parent85c9867682f497051d4d9db4960aa62273bb6204 (diff)
downloadBBsentials-20d4f8658d9697fa1aa04a9338f066b38a97ffc5.tar.gz
BBsentials-20d4f8658d9697fa1aa04a9338f066b38a97ffc5.tar.bz2
BBsentials-20d4f8658d9697fa1aa04a9338f066b38a97ffc5.zip
Merge remote-tracking branch 'origin/master'
-rw-r--r--common/src/main/java/de/hype/bbsentials/common/chat/Chat.java4
-rw-r--r--fabric/src/main/java/de/hype/bbsentials/fabric/numpad/NumPadCodeConfigScreen.java7
2 files changed, 3 insertions, 8 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 517a93f..c35f4ad 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
@@ -324,11 +324,9 @@ public class Chat {
}
}
else if (messageUnformatted.equals("Click here to purchase a new 6 hour pass for 10,000 Coins")) {
+ Chat.sendPrivateMessageToSelfText(Message.tellraw("[\"\",\"You can press \",{\"keybind\":\"Chat Prompt Yes / Open Menu\",\"color\":\"green\"},\" to buy it.\"]"));
setChatCommand("/purchasecrystallhollowspass", 30);
}
- else if (messageUnformatted.startsWith("FEAR. A Primal Fear")) {
- sendNotification("BB: Primal Fear", messageUnformatted);
- }
}
else if (message.isFromGuild()) {
diff --git a/fabric/src/main/java/de/hype/bbsentials/fabric/numpad/NumPadCodeConfigScreen.java b/fabric/src/main/java/de/hype/bbsentials/fabric/numpad/NumPadCodeConfigScreen.java
index bf9c25f..6c2b28b 100644
--- a/fabric/src/main/java/de/hype/bbsentials/fabric/numpad/NumPadCodeConfigScreen.java
+++ b/fabric/src/main/java/de/hype/bbsentials/fabric/numpad/NumPadCodeConfigScreen.java
@@ -124,12 +124,9 @@ public class NumPadCodeConfigScreen extends Screen {
new NoticeScreen(() -> MinecraftClient.getInstance().setScreen(this), Text.of(""), Text.of("§cInvalid Code / already used!"));
return;
}
- if (codeTextField.forbiddenCode(codeTextField.getText())) {
- new NoticeScreen(() -> MinecraftClient.getInstance().setScreen(this), Text.of(""), Text.of("§cNo Command specified"));
- return;
- }
+ code.code = codeTextField.getText();
code.commands = new ArrayList<>(commandFields.stream().map(TextFieldWidget::getText).toList());
- code.commandDelay = new ArrayList<>(commandFields.stream().map((field) -> {
+ code.commandDelay = new ArrayList<>(delayFields.stream().map((field) -> {
String text = field.getText();
if (text.isEmpty()) return 1.0;
return Double.parseDouble(text);