From f0db038c4e8570c0ce75a79657c3a64d318c1686 Mon Sep 17 00:00:00 2001 From: Max Moons Date: Sun, 26 Apr 2026 23:51:56 +0000 Subject: [PATCH] update data-logger * Added data-logger * Thanks for catching the reflection issues. To address the "Use of reflection is not allowed" feedback properly and avoid any hacky workarounds, I realized the plugin's core architecture needed a refactor. Here is what I've updated: Removed Dynamic Class Loading: Overhauled the UI routing by removing the reflection-based panel instantiation and replacing it with explicit Guice bindings and a safe switch statement in DataLoggerPanel. Removed Gson TypeToken Reflection: Removed the dynamic TypeToken reflection in FileIOService, replacing it with standard Java function parsing via the LogType enum. Removed Method Invocation: Replaced the reflective invoke call with a direct client.getAccountHash() API call in the new AbstractLogger base class. Let me know if everything looks good to go! * To address the "Use of reflection is not allowed" feedback properly and avoid any hacky workarounds, I realized the plugin's core architecture needed a refactor. I have made the following changes; Removed Dynamic Class Loading: Overhauled the UI routing by removing the reflection-based panel instantiation and replacing it with explicit Guice bindings and a safe switch statement in DataLoggerPanel. Removed Gson TypeToken Reflection: Removed the dynamic TypeToken reflection in FileIOService, replacing it with standard Java function parsing via the LogType enum. Removed Method Invocation: Replaced the reflective invoke call with a direct client.getAccountHash() API call in the new AbstractLogger base class. Let me know if everything looks good to go! * Update data-logger to 1.1 Added Colosseum attempt logger Added Colosseum gamestate logger Added Colosseum screenshot logger Added Item Storage logger Extended Grand Exchange Logger * PR revision based on feedback Shifted nearly all IO operations to FileIOService Updated README Removed poorly defined toString() method of ColosseumWave * Small ExchangeLogger changes; fixed totalTimeTaken Disabled submission of new offers via the History parser Added offer submission logic before an offer collection event fires Defined totalTimeTaken in ColosseumAttemptLogger * Unregister itemVaultLogger on shutdown The Plugin now unregisters the itemVaultLogger on shutdown * Update commit reference in data-logger plugin Substituted log.info calls with log.debug calls * Updated hash to correct hash * Substituted java.awt.Desktop calls with RuneLite LinkBrowser calls --- plugins/data-logger | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/data-logger b/plugins/data-logger index b97752c88..cf497bb07 100644 --- a/plugins/data-logger +++ b/plugins/data-logger @@ -1,3 +1,3 @@ repository=https://github.com/Maximuis94/runelite-plugins.git -commit=f817c13e3ff65c647bc58fd78b69e8ac75f3efb8 -authors=maximuis94 \ No newline at end of file +commit=841e3d168a210b89e7af8fc2740311f9d872818d +authors=maximuis94