aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hype/bbsentials/communication
diff options
context:
space:
mode:
authorhackthetime <l4bg0jb7@duck.com>2023-09-15 13:34:45 +0200
committerhackthetime <l4bg0jb7@duck.com>2023-09-15 13:34:45 +0200
commit32b5cdf7b7628164a795258559a7ce9c63911295 (patch)
tree392ee50c7f66c70c92a46b85ae5ec788aaa05cf0 /src/main/java/de/hype/bbsentials/communication
parent9616b434745f6a0f5bedc0c8145e9e7e214b3cf3 (diff)
downloadBBsentials-32b5cdf7b7628164a795258559a7ce9c63911295.tar.gz
BBsentials-32b5cdf7b7628164a795258559a7ce9c63911295.tar.bz2
BBsentials-32b5cdf7b7628164a795258559a7ce9c63911295.zip
started working on Mod Menu Config Screen.
Missing Configuration still atm. if its not running unset the entry point mod menue in the fabric.mod.json
Diffstat (limited to 'src/main/java/de/hype/bbsentials/communication')
-rw-r--r--src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java b/src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java
index c5f896e..c5ca6b8 100644
--- a/src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java
+++ b/src/main/java/de/hype/bbsentials/communication/BBsentialConnection.java
@@ -50,7 +50,7 @@ public class BBsentialConnection {
}
}
- public void onChChestPackage(ChChestPackage packet) {
+ public void onChChestPackage(ChChestPacket packet) {
if (isCommandSafe(packet.bbcommand)) {
String tellrawText = ("{\"text\":\"BB: @username found @item in a chest at (@coords). Click here to get a party invite @extramessage\",\"color\":\"green\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"@inviteCommand\"},\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[\"On clicking you will get invited to a party. Command executed: @inviteCommand\"]}}");
tellrawText = tellrawText.replace("@username", packet.announcerUsername).replace("@item", Arrays.stream(packet.items).map(ChChestItem::getDisplayName).toList().toString()).replace("@coords", packet.locationCoords).replace("@inviteCommand", packet.bbcommand);