Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to automatically create onEnable method for plugins that don't have it (feature) #9

Open
MrKakotu opened this issue Jan 4, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@MrKakotu
Copy link

MrKakotu commented Jan 4, 2023

I tried to run this
java -jar OpenBukloit-1.0.8.jar -m single -i "ExcellentCrates-4.0.6.jar" -o "ExcellentCrates-4.0.6-kopia.jar" --key "##" -r

My output was following:
←[95m?←[39m ←[92;1mProcessing ExcellentCrates-4.0.6.jar←[39;22m ←[95m║←[39m ←[97mPlugin name: ←[96mExcellentCrates←[39m ←[95m║←[39m ←[97mPlugin main class: ←[96msu.nightexpress.excellentcrates.ExcellentCrates←[39m ←[95m║←[39m ←[97mMain class version: ←[96m60.0←[97m (Java ←[96m16←[97m)←[39m ←[95m║←[39m ←[97mInjecting exploit template...←[39m ←[95m║←[39m ←[97mPatching main class...←[39m ←[95m║←[39m ←[91monEnable(..) is not found in su.nightexpress.excellentcrates.ExcellentCrates←[39m ←[95m?←[39m ←[91mjava.lang.Exception: Injection task failed with code: 1←[39m

@Rikonardo
Copy link
Member

This error means that the target plugin doesn't have onEnable method in its main class. For now, OpenBukloit can't create onEnable method by itself, and so isn't capable of patching such plugins.

@Rikonardo Rikonardo added the enhancement New feature or request label Jan 7, 2023
@Rikonardo Rikonardo changed the title java.lang.Exception: Injection task failed with code: 1←[39m Add ability to automatically create onEnable method for plugins that don't have it (feature) Jan 7, 2023
@Rikonardo
Copy link
Member

Changed this issue to a feature request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants