From 5e68f5c21f3cf9e99479232c7da25379e616852e Mon Sep 17 00:00:00 2001 From: TenShie Date: Thu, 10 Feb 2022 02:16:50 +0000 Subject: [PATCH] Saveing images correctly. --- .../org/krews/apollyon/incoming/CameraRoomPictureEvent.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/krews/apollyon/incoming/CameraRoomPictureEvent.java b/src/main/java/org/krews/apollyon/incoming/CameraRoomPictureEvent.java index 8dd7fac..68ec0e6 100644 --- a/src/main/java/org/krews/apollyon/incoming/CameraRoomPictureEvent.java +++ b/src/main/java/org/krews/apollyon/incoming/CameraRoomPictureEvent.java @@ -54,8 +54,10 @@ public class CameraRoomPictureEvent extends MessageHandler { String URL = this.client.getHabbo().getHabboInfo().getId() + "_" + timestamp + ".png"; String URL_small = this.client.getHabbo().getHabboInfo().getId() + "_" + timestamp + "_small.png"; + String UserID = this.client.getHabbo().getHabboInfo().getId() + ""; + String UserNAME = this.client.getHabbo().getHabboInfo().getUsername(); String base = Emulator.getConfig().getValue("camera.url"); - String json = Emulator.getConfig().getValue("camera.extradata").replace("%timestamp%", timestamp + "").replace("%room_id%", room.getId() + "").replace("%url%", base + URL); + String json = Emulator.getConfig().getValue("camera.extradata").replace("%timestamp%", timestamp + "000").replace("%room_id%", room.getId() + "").replace("%url%", base + URL).replace("%username%", UserNAME).replace("%userid%", UserID); this.client.getHabbo().getHabboInfo().setPhotoURL(base + URL); this.client.getHabbo().getHabboInfo().setPhotoTimestamp(timestamp); this.client.getHabbo().getHabboInfo().setPhotoRoomId(room.getId());