Merge branch 'TenShie-master-patch-59930' into 'master'

Saveing images correctly.

See merge request official-plugins/apollyon!13
This commit is contained in:
Harmonic 2022-03-06 22:16:50 +00:00
commit 4c77bb8a93

View File

@ -54,8 +54,10 @@ public class CameraRoomPictureEvent extends MessageHandler {
String URL = this.client.getHabbo().getHabboInfo().getId() + "_" + timestamp + ".png"; String URL = this.client.getHabbo().getHabboInfo().getId() + "_" + timestamp + ".png";
String URL_small = this.client.getHabbo().getHabboInfo().getId() + "_" + timestamp + "_small.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 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().setPhotoURL(base + URL);
this.client.getHabbo().getHabboInfo().setPhotoTimestamp(timestamp); this.client.getHabbo().getHabboInfo().setPhotoTimestamp(timestamp);
this.client.getHabbo().getHabboInfo().setPhotoRoomId(room.getId()); this.client.getHabbo().getHabboInfo().setPhotoRoomId(room.getId());