From 10df99c7506e4ee6d353f678cbf5dcbb9470c9b7 Mon Sep 17 00:00:00 2001 From: Konloch Date: Fri, 23 Jul 2021 15:46:19 -0700 Subject: [PATCH] Plugin Fixes --- plugins/example/ExampleStringDecrypter.java | 2 +- .../bytecodeviewer/plugin/preinstalled/EZInjection.java | 8 ++------ src/main/resources/templates/Template_Plugin.java | 2 +- src/main/resources/templates/Template_Plugin.js | 2 +- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/plugins/example/ExampleStringDecrypter.java b/plugins/example/ExampleStringDecrypter.java index 278fdee1..2a3fe5d0 100644 --- a/plugins/example/ExampleStringDecrypter.java +++ b/plugins/example/ExampleStringDecrypter.java @@ -15,7 +15,7 @@ public class ExampleStringDecrypter extends Plugin { @Override public void execute(ArrayList classNodesList) { - PluginConsole gui = new PluginConsole(activeContainer.name + "Example String Decrypter"); + PluginConsole gui = new PluginConsole(activeContainer.name + " - Example String Decrypter"); MultipleChoiceDialog dialog = new MultipleChoiceDialog("Bytecode Viewer - WARNING", "WARNING: This will load the classes into the JVM and execute the initialize function" diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/EZInjection.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/EZInjection.java index 63e81493..8dc2f38f 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/EZInjection.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/EZInjection.java @@ -139,12 +139,8 @@ public class EZInjection extends Plugin @Override public void execute(ArrayList classNodeList) { - PluginConsole gui = new PluginConsole(activeContainer.name + " - EZ Injection v" + version); - - gui.setText(""); - - if (console) - gui.setVisible(true); + if(console) + new PluginConsole(activeContainer.name + " - EZ Injection v" + version); if (accessModifiers) print("Setting all of the access modifiers to public/public static."); diff --git a/src/main/resources/templates/Template_Plugin.java b/src/main/resources/templates/Template_Plugin.java index dacd295e..76b5d7f9 100644 --- a/src/main/resources/templates/Template_Plugin.java +++ b/src/main/resources/templates/Template_Plugin.java @@ -13,7 +13,7 @@ public class Template extends Plugin public void execute(ArrayList classNodeList) { //create console - gui = new PluginConsole(activeContainer.name + "Java Template"); + gui = new PluginConsole(activeContainer.name + " - Java Template"); gui.setVisible(true); //show the console //debug text diff --git a/src/main/resources/templates/Template_Plugin.js b/src/main/resources/templates/Template_Plugin.js index dbea4191..1c3b9496 100644 --- a/src/main/resources/templates/Template_Plugin.js +++ b/src/main/resources/templates/Template_Plugin.js @@ -7,7 +7,7 @@ var gui; */ function execute(classNodeList) { - gui = new PluginConsole(activeContainer.name + "Javascript Template"); + gui = new PluginConsole(activeContainer.name + " - Javascript Template"); gui.setVisible(true); //show the console out("Class Nodes: " + classNodeList.size());