From b685da386c2c65dedd308769ead27e8bbe463bb0 Mon Sep 17 00:00:00 2001 From: Max Moons Date: Wed, 4 Mar 2026 00:18:45 +0100 Subject: [PATCH] add data-logger (#10748) * 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! --- plugins/data-logger | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 plugins/data-logger diff --git a/plugins/data-logger b/plugins/data-logger new file mode 100644 index 000000000..b97752c88 --- /dev/null +++ b/plugins/data-logger @@ -0,0 +1,3 @@ +repository=https://github.com/Maximuis94/runelite-plugins.git +commit=f817c13e3ff65c647bc58fd78b69e8ac75f3efb8 +authors=maximuis94 \ No newline at end of file