Skip to content

Commit

Permalink
np
Browse files Browse the repository at this point in the history
  • Loading branch information
RealRTTV committed Sep 28, 2024
1 parent 41f09eb commit 3227e53
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ public static int reply(FabricClientCommandSource source, Component message) thr
throw NO_TARGET_FOUND_EXCEPTION.create();
}

String text = message.getString();
String text = message.getString();

if (3 + currentTarget.length() + 1 + text.length() > 256) {
throw MESSAGE_TOO_LONG_EXCEPTION.create(256 - (3 + currentTarget.length() + 1), text.length());
}
if (3 + currentTarget.length() + 1 + text.length() > 256) {
throw MESSAGE_TOO_LONG_EXCEPTION.create(256 - (3 + currentTarget.length() + 1), text.length());
}

source.getClient().getConnection().sendCommand(String.format("w %s %s", currentTarget, text));

Expand Down

0 comments on commit 3227e53

Please sign in to comment.